* being DE_$basename).
*/
const NAMETYPES = 'nametypes';
+ const NAMES = 'names';
const BINETS = 'binets';
const GROUPESX = 'groupesx';
self::init($type);
}
$obj = self::$enumerations[$type];
+ $args = func_get_args();
+ array_shift($args);
if ($obj->capabilities & DirEnumeration::HAS_OPTIONS) {
- return call_user_func(array($obj, 'getOptionsIter'));
+ return call_user_func_array(array($obj, 'getOptionsIter'), $args);
} else {
return PlIteratorUtils::fromArray(array());
}
} else if (array_key_exists($subid, $this->suboptions)) {
return $this->suboptions[$subid];
} else {
- return false;
+ return array();
}
}
}
// }}}
+// {{{ class DE_Names
+// returns 'system' names ('lastname', 'lastname_marital', ...)
+class DE_Names extends DirEnumeration
+{
+ public $capabilities = 0x005; // self::HAS_OPTIONS | self::SAVE_IN_SESSION;
+
+ protected $from = 'profile_name_enum';
+ protected $idfield = 'type';
+ protected $valfield = 'name';
+}
+// }}}
+
/** GROUPS
*/
// {{{ class DE_Binets