Beispiel #1
0
 /**
  * count users
  *
  * @param string $_filter string to search user accounts for
  * @return int total user count
  */
 public function searchCount($_filter)
 {
     $this->checkRight('VIEW_ACCOUNTS');
     $users = $this->_userBackend->getUsers($_filter);
     $result = count($users);
     return $result;
 }
 /**
  * get list of full accounts -> renamed to search full users
  *
  * @param string $_filter string to search accounts for
  * @param string $_sort
  * @param string $_dir
  * @param int $_start
  * @param int $_limit
  * @return Tinebase_Record_RecordSet with record class Tinebase_Model_FullUser
  */
 public function searchFullUsers($_filter, $_sort = NULL, $_dir = 'ASC', $_start = NULL, $_limit = NULL)
 {
     $this->checkRight('VIEW_ACCOUNTS');
     $result = $this->_userBackend->getUsers($_filter, $_sort, $_dir, $_start, $_limit, 'Tinebase_Model_FullUser');
     return $result;
 }