listUsers() 공개 메소드

Lists all users in the system.
public listUsers ( boolean $sort = false ) : mixed
$sort boolean Sort the users?
리턴 mixed The array of userIds.
예제 #1
0
 /**
  * Returns a list of principals based on a prefix.
  *
  * @param string $prefixPath
  * @return array
  */
 public function getPrincipalsByPrefix($prefixPath)
 {
     if ($prefixPath != 'principals') {
         throw new DAV\Exception\NotFound('Invalid principal prefix path ' . $prefixPath);
     }
     $users = array($this->_getUserInfo('-system-'));
     if (!$this->_auth->hasCapability('list')) {
         return $users;
     }
     foreach ($this->_auth->listUsers() as $user) {
         $users[] = $this->_getUserInfo($user);
     }
     return $users;
 }
예제 #2
0
파일: Application.php 프로젝트: horde/horde
 /**
  * List all users in the system.
  *
  * @return array  The array of user IDs.
  * @throws Horde_Auth_Exception
  */
 public function listUsers($sort = false)
 {
     if ($this->_base) {
         return $this->_base->listUsers($sort);
     }
     return $this->hasCapability('list') ? $GLOBALS['registry']->callAppMethod($this->_app, 'authUserList') : parent::listUsers($sort);
 }
예제 #3
0
 /**
  */
 public function listUsers($sort = false)
 {
     return $this->_base->listUsers($sort);
 }