src/snac/server/database/DBUser.php
/**
     * List all system roles.
     *
     * Create a list of Role objects of all roles.
     *
     * @return \snac\data\Role[] Return list of Role object, each of which contains a list of Privilege
     * objects.
     */
List all system roles.
Create a list of Role objects of all roles.

@return \snac\data\Role[] Return list of Role object, each of which contains a list of Privilege
objects.
List all system roles . Create a list of Role objects of all roles . @return \ snac \ data \ Role [] Return list of Role object each of which contains a list of Privilege objects .
public function listRoles()
    {
        $roleIDList = $this->sql->selectAllRoleIDs();
        $roleObjList = array();
        foreach($roleIDList as $rid)
        {
            $roleObj = $this->readRole($rid);
            array_push($roleObjList, $roleObj);
        }
        return $roleObjList;
    }
public function listRoles ( ) { $ roleIDList = $ this -> sql -> selectAllRoleIDs ( ) ; $ roleObjList = array ( ) ; foreach ( $ roleIDList as $ rid ) { $ roleObj = $ this -> readRole ( $ rid ) ; array_push ( $ roleObjList , $ roleObj ) ; } return $ roleObjList ; }
List all system roles.
List all system roles .
/*
         * This might have been called: listallroles listallrole allrolelist.
         */