Piwik\Plugins\UsersManager\Model::getUsersLogin PHP Method

getUsersLogin() public method

Returns the list of all the users login
public getUsersLogin ( ) : array
return array the list of all the users login
    public function getUsersLogin()
    {
        $db = $this->getDb();
        $users = $db->fetchAll("SELECT login FROM " . $this->table . " ORDER BY login ASC");
        $return = array();
        foreach ($users as $login) {
            $return[] = $login['login'];
        }
        return $return;
    }

Usage Example

Example #1
0
 /**
  * Returns the list of all the users login
  *
  * @return array the list of all the users login
  */
 public function getUsersLogin()
 {
     Piwik::checkUserHasSomeAdminAccess();
     $logins = $this->model->getUsersLogin();
     $logins = $this->userFilter->filterLogins($logins);
     return $logins;
 }
All Usage Examples Of Piwik\Plugins\UsersManager\Model::getUsersLogin