/** * Retrieve a property from the internal item object * * @param string $key Property to retrieve * @param mixed $default * @return string */ public function item($key = '', $default = null) { switch (strtolower($key)) { case 'title': $key = 'description'; break; case 'alias': $key = 'cn'; break; case 'id': $key = 'gidNumber'; break; default: break; } return parent::item($key, $default); }
/** * Retrieve a property from the internal item object * * @param string $key Property to retrieve * @param mixed $default * @return string */ public function item($key = '', $default = null) { switch (strtolower($key)) { case 'title': $key = 'name'; break; case 'alias': $key = 'username'; break; case 'uidNumber': $key = 'id'; break; default: break; } return parent::item($key, $default); }