getData('userGroupId'); } /** * Set user ID associated with a user group assignment. * also sets the $userGroup * @param $userId int */ function setUserGroupId($userGroupId) { $this->setData('userGroupId', $userGroupId); $userGroupDao = DAORegistry::getDAO('UserGroupDAO'); $this->userGroup = $userGroupDao->getById($userGroupId); return ($this->userGroup)?true:false; } /** * Get user ID associated with role. * @return int */ function getUserId() { return $this->getData('userId'); } /** * Set user ID associated with role. * @param $userId int */ function setUserId($userId) { $this->setData('userId', $userId); } } ?>