_userID = $userID; $this->_mode = $mode; } function getUserID() { return $this->_userID; } function getMode() { return $this->_mode; } function getUser() { if (!isset($this->_user)) $this->_user = getUser($this->_userID); return $this->_user; } } class GroupAccess { var $_groupID; var $_mode; function GroupAccess($groupID, $mode) { $this->_groupID = $groupID; $this->_mode = $mode; } function getGroupID() { return $this->_groupID; } function getMode() { return $this->_mode; } function getGroup() { if (!isset($this->_group)) $this->_group = getGroup($this->_groupID); return $this->_group; } }