pass params when loading Objects_Indexed_By_Id
This commit is contained in:
parent
4fcece6b69
commit
cce0ab1464
|
@ -147,9 +147,9 @@ class ZM_Object {
|
|||
Logger::Debug("Unsset $class " . $object->Id() . " " . count($object_cache[$class]));
|
||||
}
|
||||
|
||||
public static function Objects_Indexed_By_Id($class) {
|
||||
public static function Objects_Indexed_By_Id($class, $params=null) {
|
||||
$results = array();
|
||||
foreach ( ZM_Object::_find($class, null, array('order'=>'lower(Name)')) as $Object ) {
|
||||
foreach ( ZM_Object::_find($class, $params, array('order'=>'lower(Name)')) as $Object ) {
|
||||
$results[$Object->Id()] = $Object;
|
||||
}
|
||||
return $results;
|
||||
|
|
Loading…
Reference in New Issue