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'); $userGroup =& $userGroupDao->getById($userGroupId); $this->userGroup =& $userGroup; 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) { return $this->setData('userId', $userId); } } ?>