src/snac/server/database/SQL.php
/**
     * Select IDs of all privilege records
     *
     * Return a list privilege IDs
     *
     * @return integer[] List of strings for each privileges. We expect the calling code in DBUser.php to send
     * each element of the list to populatePrivilege().
     */
Select IDs of all privilege records
Return a list privilege IDs

@return integer[] List of strings for each privileges. We expect the calling code in DBUser.php to send
each element of the list to populatePrivilege().
Select IDs of all privilege records Return a list privilege IDs @return integer [] List of strings for each privileges . We expect the calling code in DBUser . php to send each element of the list to populatePrivilege () .
public function selectAllPrivilegeIDs()
    {
        $result = $this->sdb->query("select id from privilege order by label", array());
        $all = array();
        while($row = $this->sdb->fetchrow($result))
        {
            array_push($all, $row['id']);
        }
        return $all;
    }
public function selectAllPrivilegeIDs ( ) { $ result = $ this -> sdb -> query ( " select id from privilege order by label " , array ( ) ) ; $ all = array ( ) ; while ( $ row = $ this -> sdb -> fetchrow ( $ result ) ) { array_push ( $ all , $ row [ 'id' ] ) ; } return $ all ; }
Select IDs of all privilege records
 Return a list privilege IDs
Select IDs of all privilege records Return a list privilege IDs