src/snac/server/database/SQL.php
/**
     * Return a list of privilege id values for a role
     *
     * @param integer $rid A role id value
     *
     * @return integer[] List of related privilege ID values.
     */
Return a list of privilege id values for a role
@param integer $rid A role id value

@return integer[] List of related privilege ID values.
Return a list of privilege id values for a role @param integer $rid A role id value @return integer [] List of related privilege ID values .
public function selectRolePrivilegeList($rid)
    {
        $result = $this->sdb->query("select pid from privilege_role_link where rid=$1", array($rid));
        $all = array();
        while($row = $this->sdb->fetchrow($result))
        {
            array_push($all, $row['pid']);
        }
        return $all;
    }
public function selectRolePrivilegeList ( $ rid ) { $ result = $ this -> sdb -> query ( " select pid from privilege_role_link where rid=$1 " , array ( $ rid ) ) ; $ all = array ( ) ; while ( $ row = $ this -> sdb -> fetchrow ( $ result ) ) { array_push ( $ all , $ row [ 'pid' ] ) ; } return $ all ; }
Return a list of privilege id values for a role
 @param integer $rid A role id value
Return a list of privilege id values for a role @param integer $rid A role id value