/** * @see Page::show() */ public function show() { // enable menu item WCFACP::getMenu()->setActiveMenuItem('wcf.acp.menu.link.group'); Session::resetSessions(); WCF::getUser()->checkPermission('admin.user.canPMToUserGroups'); // show form parent::show(); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('page' => $this->page, 'pageID' => $this->pageID, 'moduleID' => $this->moduleID, 'module' => $this->module, 'moduleList' => ModuleManager::getAvailableModules(), 'availablePositions' => $this->availablePositions)); }
/** * Validates the subject. * * @throws UserInputException */ protected function validateSubject() { parent::validateSubject(); if (strlen($this->subject) < 4) { throw new UserInputException('subject', 'tooShort'); } }
/** * @see Page::show() */ public function show() { // enable menu item WCFACP::getMenu()->setActiveMenuItem('wcf.acp.menu.link.wantedPoster'); // show form parent::show(); }
/** * @see Form::save() */ public function save() { WysiwygCacheloaderForm::save(); // save options $sql = "UPDATE\r\n\t\t\t\t\twcf" . WCF_N . "_page_module_to_page\r\n\t\t\t\tSET\r\n\t\t\t\t\toptions = '" . escapeString(serialize($this->optionGroupList)) . "'\r\n\t\t\t\tWHERE\r\n\t\t\t\t\tinstanceID = " . $this->instanceID; WCF::getDB()->sendQuery($sql); // remove cache WCF::getCache()->clear(WCF_DIR . 'cache/', 'cache.pageModules-' . $this->pageID . '-' . PACKAGE_ID . '.php'); // display success message WCF::getTPL()->assign('success', true); // call event $this->saved(); }