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

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