/** * @see \wcf\page\IPage::readData() */ public function readData() { $this->availableTemplateGroups = TemplateGroup::getSelectList(array($this->templateGroupID), 1); AbstractForm::readData(); // default values if (!count($_POST)) { $this->templateGroupName = $this->templateGroup->templateGroupName; $this->templateGroupFolderName = $this->templateGroup->templateGroupFolderName; $this->parentTemplateGroupID = $this->templateGroup->parentTemplateGroupID; } }
/** * @see \wcf\page\IPage::readData() */ public function readData() { $this->availableTemplateGroups = TemplateGroup::getSelectList(array(), 1); parent::readData(); }
/** * @see \wcf\page\IPage::readData() */ public function readData() { parent::readData(); // get template groups $this->availableTemplateGroups = TemplateGroup::getSelectList(array(), 1); // get applications $applications = ApplicationHandler::getInstance()->getApplications(); $applications[] = ApplicationHandler::getInstance()->getWCF(); foreach ($applications as $application) { $package = PackageCache::getInstance()->getPackage($application->packageID); $this->availableApplications[ApplicationHandler::getInstance()->getAbbreviation($package->packageID)] = $package; // issues with the language cache would cause the uasort() below to throw a // misleading error message, calling it here just reveals the real error $package->getName(); } uasort($this->availableApplications, function ($a, $b) { return $a->getName() > $b->getName(); }); }
/** * @see \wcf\page\IPage::readData() */ public function readData() { parent::readData(); $this->availableTemplateGroups = TemplateGroup::getSelectList(); if (!count($_POST) && $this->copiedTemplate !== null) { $this->tplName = $this->copiedTemplate->templateName; $this->templateSource = $this->copiedTemplate->getSource(); } }