classes/registration/Registration.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00016 //$Id$
00017 
00018 define('REGISTRATION_IP_RANGE_SEPERATOR', ';');
00019 define('REGISTRATION_IP_RANGE_RANGE', '-');
00020 define('REGISTRATION_IP_RANGE_WILDCARD', '*');
00021 define('REGISTRATION_YEAR_OFFSET_PAST', '-10');
00022 define('REGISTRATION_YEAR_OFFSET_FUTURE', '+10');
00023 
00024 
00025 class Registration extends DataObject {
00026 
00027    function Registration() {
00028       parent::DataObject();
00029    }
00030 
00031    //
00032    // Get/set methods
00033    //
00034 
00039    function getRegistrationId() {
00040       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00041       return $this->getId();
00042    }
00043 
00048    function setRegistrationId($registrationId) {
00049       if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00050       return $this->setId($registrationId);
00051    }
00052 
00057    function getSchedConfId() {
00058       return $this->getData('schedConfId');
00059    }
00060 
00065    function setSchedConfId($schedConfId) {
00066       return $this->setData('schedConfId', $schedConfId);
00067    }
00068 
00073    function getUserId() {
00074       return $this->getData('userId');
00075    }
00076 
00081    function setUserId($userId) {
00082       return $this->setData('userId', $userId);
00083    }
00084 
00089    function getUserFullName() {
00090       $userDao =& DAORegistry::getDAO('UserDAO');
00091       return $userDao->getUserFullName($this->getData('userId'));
00092    }
00093 
00098    function getTypeId() {
00099       return $this->getData('typeId');
00100    }
00101 
00106    function setTypeId($typeId) {
00107       return $this->setData('typeId', $typeId);
00108    }
00109 
00114    function getRegistrationTypeName() {
00115       $registrationTypeDao =& DAORegistry::getDAO('RegistrationTypeDAO');
00116       return $registrationTypeDao->getRegistrationTypeName($this->getData('typeId'));
00117    }
00118 
00123    function getDateRegistered() {
00124       return $this->getData('dateRegistered');
00125    }
00126 
00131    function setDateRegistered($dateRegistered) {
00132       return $this->setData('dateRegistered', $dateRegistered);
00133    }
00134 
00139    function getDatePaid() {
00140       return $this->getData('datePaid');
00141    }
00142 
00147    function setDatePaid($datePaid) {
00148       return $this->setData('datePaid', $datePaid);
00149    }
00150 
00155    function getSpecialRequests() {
00156       return $this->getData('specialRequests');
00157    }
00158 
00163    function setSpecialRequests($specialRequests) {
00164       return $this->setData('specialRequests', $specialRequests);
00165    }
00166 
00171    function getMembership() {
00172       return $this->getData('membership');
00173    }
00174 
00179    function setMembership($membership) {
00180       return $this->setData('membership', $membership);
00181    }
00182 
00187    function getDomain() {
00188       return $this->getData('domain');
00189    }
00190 
00195    function setDomain($domain) {
00196       return $this->setData('domain', $domain);
00197    }
00198 
00203    function getIPRange() {
00204       return $this->getData('ipRange');
00205    }
00206 
00211    function setIPRange($ipRange) {
00212       return $this->setData('ipRange', $ipRange);
00213    }
00214 
00219    function getIPRanges() {
00220       return explode(REGISTRATION_IP_RANGE_SEPERATOR, $this->getData('ipRange'));
00221    }
00222 
00227    function setIPRanges($ipRanges) {
00228       return $this->setData(implode(REGISTRATION_IP_RANGE_SEPERATOR, $ipRanges));
00229    }
00230 
00231 }
00232 
00233 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7