src/snac/server/database/DBUser.php
/**
     * List all system privileges.
     *
     * Create a list of Privilege objects of all privileges.
     *
     * @return \snac\data\Privilege[] Return list of Privilege objects
     */
List all system privileges.
Create a list of Privilege objects of all privileges.

@return \snac\data\Privilege[] Return list of Privilege objects
List all system privileges . Create a list of Privilege objects of all privileges . @return \ snac \ data \ Privilege [] Return list of Privilege objects
public function listPrivileges()
    {
        $pidList = $this->sql->selectAllPrivilegeIDs();
        $privilegeObjList = array();
        foreach($pidList as $pid)
        {
            $privilegeObj = $this->populatePrivilege($pid);
            array_push($privilegeObjList, $privilegeObj);
        }
        return $privilegeObjList;
    }
public function listPrivileges ( ) { $ pidList = $ this -> sql -> selectAllPrivilegeIDs ( ) ; $ privilegeObjList = array ( ) ; foreach ( $ pidList as $ pid ) { $ privilegeObj = $ this -> populatePrivilege ( $ pid ) ; array_push ( $ privilegeObjList , $ privilegeObj ) ; } return $ privilegeObjList ; }
List all system privileges.
List all system privileges .