getPath()); } /** * Get the conference for this scheduled conference. * @return string */ function &getConference() { $conferenceDao = &DAORegistry::getDAO('ConferenceDAO'); $returner =& $conferenceDao->getConference($this->getConferenceId()); return $returner; } /** * get current * @return int */ function getCurrent() { return $this->getData('current'); } /** * set current * @param $current int */ function setCurrent($current) { return $this->setData('current', $current); } /** * Get the localized title of the scheduled conference * @return string */ function getSchedConfTitle() { return $this->getLocalizedSetting('title'); } /** * Get title of scheduled conference * @param $locale string * @return string */ function getTitle($locale) { return $this->getSetting('title', $locale); } /** * Get the localized acronym of the scheduled conference * @return string */ function getSchedConfAcronym() { return $this->getLocalizedSetting('acronym'); } /** * Get ID of scheduled conference. * @return int */ function getSchedConfId() { return $this->getData('schedConfId'); } /** * Set ID of scheduled conference. * @param $schedConfId int */ function setSchedConfId($schedConfId) { return $this->setData('schedConfId', $schedConfId); } /** * Get conference ID of scheduled conference. * @return int */ function getConferenceId() { return $this->getData('conferenceId'); } /** * Set conference ID of scheduled conference. * @param $schedConfId int */ function setConferenceId($conferenceId) { return $this->setData('conferenceId', $conferenceId); } /** * Get path to scheduled conference (in URL). * @return string */ function getPath() { return $this->getData('path'); } /** * Set path to scheduled conference (in URL). * @param $path string */ function setPath($path) { return $this->setData('path', $path); } /** * Get sequence of scheduled conference in site table of contents. * @return float */ function getSequence() { return $this->getData('sequence'); } /** * Set sequence of scheduled conference in site table of contents. * @param $sequence float */ function setSequence($sequence) { return $this->setData('sequence', $sequence); } // // Scheduled conference start/end date functions // /** * Get start date of scheduled conference. * @return date */ function getStartDate() { return $this->getData('startDate'); } /** * Set start date of scheduled conference. * @param $startDate date */ function setStartDate($startDate) { return $this->setData('startDate', $startDate); } /** * Get end date of scheduled conference. * @return date */ function getEndDate() { return $this->getData('endDate'); } /** * Set end date of scheduled conference. * @param $endDate date */ function setEndDate($endDate) { return $this->setData('endDate', $endDate); } // // Helper functions making use of both the scheduled conference // and Conference. // /** * Get full title of scheduled conference. * (Used to include conference title as well; this behavior was deprecated prior to 2.0 release.) * @return string */ function getFullTitle() { return $this->getSchedConfTitle(); } // // SchedConfSettings functions: the following make use of data in the // ConferenceSettings or SchedConfSettings tables. // /** * Retrieve array of scheduled conference settings. * @param $includeParent * @return array */ function getSettings($includeParent = false) { $schedConfSettingsDao = &DAORegistry::getDAO('SchedConfSettingsDAO'); return $schedConfSettingsDao->getSchedConfSettings($this->getData('schedConfId'), $includeParent); } /** * Get a localized scheduled conference setting. * @param $name string * @param $includeParent boolean * @return mixed */ function &getLocalizedSetting($name, $includeParent = false) { $returner = $this->getSetting($name, $includeParent, Locale::getLocale()); if ($returner === null) { unset($returner); $returner = $this->getSetting($name, $includeParent, Locale::getPrimaryLocale()); } return $returner; } /** * Retrieve a scheduled conference setting value. * @param $name * @param $includeParent * @param $locale string * @return mixed */ function &getSetting($name, $includeParent = false, $locale = null) { $schedConfSettingsDao = &DAORegistry::getDAO('SchedConfSettingsDAO'); $setting =& $schedConfSettingsDao->getSetting($this->getData('schedConfId'), $name, $includeParent, $locale); return $setting; } /** * Update a scheduled conference setting value. * @param $name string * @param $value mixed * @param $type string optional * @param $isLocalized boolean optional */ function updateSetting($name, $value, $type = null, $isLocalized = false) { $schedConfSettingsDao =& DAORegistry::getDAO('SchedConfSettingsDAO'); return $schedConfSettingsDao->updateSetting($this->getSchedConfId(), $name, $value, $type, $isLocalized); } /** * Return the primary locale of this scheduled conference. * @return string */ function getPrimaryLocale() { $conference =& $this->getConference(); return $conference->getPrimaryLocale(); } /** * Set the primary locale of this conference. * @param $locale string */ function setPrimaryLocale($primaryLocale) { return $this->setData('primaryLocale', $primaryLocale); } /** * Get CSS for this scheduled conference * @return string */ function getStyleFilename() { return $this->getSetting('schedConfStyleSheet'); } } ?>