setViewState('Description', TPropertyValue::ensureString($val)); } public function getDescription() { return $this->getViewState('Description'); } public function setUserPreference($sender, $param) { $user = $this->getUserToManage(); if ($user && !$user->IsGuest) { if ($sender->Checked) { $this->getFacade()->addToPreference($user, $this->getCalendar()->ID); } else { $this->getFacade()->removeFromPreference($user, $this->getCalendar()->ID); } $this->Page->CallbackClient->jQuery($this->Box, 'removeAttr', 'disabled'); } } public function getUserToManage() { return $this->getControlState('user'); } public function setUserToManage(DbUser $user) { $this->setControlState('user', $user); } public function getPradoScriptDependencies() { return ['jquery']; } } ?>