src/snac/server/database/DBUser.php
/**
     * Populate a privilege object
     *
     * Return a privilege object based on the $pid ID value
     *
     * @param int $pid Privilege ID to look up
     * @return \snac\data\Privilege A privilege object.
     */
Populate a privilege object
Return a privilege object based on the $pid ID value

@param int $pid Privilege ID to look up
@return \snac\data\Privilege A privilege object.
Populate a privilege object Return a privilege object based on the $pid ID value @param int $pid Privilege ID to look up @return \ snac \ data \ Privilege A privilege object .
private function populatePrivilege($pid)
    {
        $row = $this->sql->selectPrivilege($pid);
        $privilegeObj = new \snac\data\Privilege();
        $privilegeObj->setID($row['id']);
        $privilegeObj->setLabel($row['label']);
        $privilegeObj->setDescription($row['description']);
        return $privilegeObj;
    }
private function populatePrivilege ( $ pid ) { $ row = $ this -> sql -> selectPrivilege ( $ pid ) ; $ privilegeObj = new \ snac \ data \ Privilege ( ) ; $ privilegeObj -> setID ( $ row [ 'id' ] ) ; $ privilegeObj -> setLabel ( $ row [ 'label' ] ) ; $ privilegeObj -> setDescription ( $ row [ 'description' ] ) ; return $ privilegeObj ; }
Populate a privilege object
 Return a privilege object based on the $pid ID value
Populate a privilege object Return a privilege object based on the $pid ID value