classes/user/User.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00020 // $Id$
00021 
00022 
00023 import('user.PKPUser');
00024 
00025 class User extends PKPUser {
00026 
00027    function User() {
00028       parent::PKPUser();
00029    }
00030 
00031    function setTimeZone($timeZone) {
00032       return $this->updateSetting('timeZone', $timeZone);
00033    }
00034 
00035    function getTimeZone() {
00036       return $this->getSetting('timeZone');
00037    }
00038 
00044    function &getSettings($conferenceId = null) {
00045       $userSettingsDao =& DAORegistry::getDAO('UserSettingsDAO');
00046       $settings =& $userSettingsDao->getSettingsByConference($this->getId(), $conferenceId);
00047       return $settings;
00048    }
00049 
00056    function &getSetting($name, $conferenceId = null) {
00057       $userSettingsDao =& DAORegistry::getDAO('UserSettingsDAO');
00058       $setting =& $userSettingsDao->getSetting($this->getId(), $name, $conferenceId);
00059       return $setting;
00060    }
00061 
00068    function updateSetting($name, $value, $type = null, $conferenceId = null) {
00069       $userSettingsDao =& DAORegistry::getDAO('UserSettingsDAO');
00070       return $userSettingsDao->updateSetting($this->getId(), $name, $value, $type, $conferenceId);
00071    }
00072 }
00073 
00074 ?>

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