src/snac/server/database/DBUser.php
/**
     * List all users
     *
     * Return a list of all users as user objects.
     *
     * If you want to pass an affiliation, then you must also pass $everyOne.
     *
     * @param boolean $everyone optional Defaults to false. Pass true to get both active and inactive.
     * Everyone false is only active users.
     *
     * @param \snac\data\Constellation $affiliation optional Optional affiliation.
     *
     * @return \snac\data\User[] $allUserList
     */
List all users
Return a list of all users as user objects.

If you want to pass an affiliation, then you must also pass $everyOne.

@param boolean $everyone optional Defaults to false. Pass true to get both active and inactive.
Everyone false is only active users.

@param \snac\data\Constellation $affiliation optional Optional affiliation.


List all users Return a list of all users as user objects . If you want to pass an affiliation then you must also pass $everyOne . @param boolean $everyone optional Defaults to false . Pass true to get both active and inactive . Everyone false is only active users . @param \ snac \ data \ Constellation $affiliation optional Optional affiliation .
public function listUsers($everyone=false, $affiliation=null)
    {
        $idList = $this->sql->selectAllUserIDList($everyone, $affiliation==null?null:$affiliation->getID());
        $allUserList = array();
        foreach($idList as $userID)
        {
            $newUserRec = $this->sql->selectUserByID($userID);
            $newUser = $this->populateUser($newUserRec);
            array_push($allUserList, $newUser);
        }
        return $allUserList;
    }
public function listUsers ( $ everyone = false , $ affiliation = null ) { $ idList = $ this -> sql -> selectAllUserIDList ( $ everyone , $ affiliation == null ? null : $ affiliation -> getID ( ) ) ; $ allUserList = array ( ) ; foreach ( $ idList as $ userID ) { $ newUserRec = $ this -> sql -> selectUserByID ( $ userID ) ; $ newUser = $ this -> populateUser ( $ newUserRec ) ; array_push ( $ allUserList , $ newUser ) ; } return $ allUserList ; }
List all users
 Return a list of all users as user objects.
List all users Return a list of all users as user objects .