getSettingsByJournal($this->getId(), $journalId); return $settings; } /** * Retrieve a user setting value. * @param $name * @param $journalId int * @return mixed */ function &getSetting($name, $journalId = null) { $userSettingsDao =& DAORegistry::getDAO('UserSettingsDAO'); $setting =& $userSettingsDao->getSetting($this->getId(), $name, $journalId); return $setting; } /** * Set a user setting value. * @param $name string * @param $value mixed * @param $type string optional */ function updateSetting($name, $value, $type = null, $journalId = null) { $userSettingsDao =& DAORegistry::getDAO('UserSettingsDAO'); return $userSettingsDao->updateSetting($this->getId(), $name, $value, $type, $journalId); } } ?>