/** * @see Form::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); // init form if ($this->action == 'edit') { require_once WCF_DIR . 'lib/form/ContestSponsortalkEditForm.class.php'; new ContestSponsortalkEditForm($this->entry); } else { if ($this->entry->isSponsortalkable()) { require_once WCF_DIR . 'lib/form/ContestSponsortalkAddForm.class.php'; new ContestSponsortalkAddForm($this->entry); } } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'contestID' => $this->contestID, 'userID' => $this->entry->userID, 'sponsortalks' => $this->sponsortalkList->getObjects(), 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'contestmenu' => ContestMenu::getInstance())); }
/** * @see DatabaseObject::handleData() */ protected function handleData($data) { parent::handleData($data); $this->user = new UserProfile(null, $data); }