/**
  * @see	\wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     $stylesheetList = new StylesheetList();
     $stylesheetList->sqlOrderBy = 'stylesheet.title ASC';
     $stylesheetList->readObjects();
     $this->stylesheets = $stylesheetList->getObjects();
     if (empty($_POST)) {
         $this->title = $this->stylesheet->title;
         $this->less = $this->stylesheet->less;
     }
 }
示例#2
0
 protected function init()
 {
     $this->pages = PageCacheBuilder::getInstance()->getData(array(), 'pages');
     $this->contents = ContentCacheBuilder::getInstance()->getData(array(), 'contents');
     $list = new StylesheetList();
     $list->readObjects();
     $this->stylesheets = $list->getObjects();
     $this->categoryObjectType = ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.category', 'de.codequake.cms.file');
     $list = new CategoryList();
     $list->getConditionBuilder()->add("objectTypeID = ?", array($this->categoryObjectType->objectTypeID));
     $list->readObjects();
     $this->folders = $list->getObjects();
     $list = new FileList();
     $list->readObjects();
     $this->files = $list->getObjects();
 }
示例#3
0
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     I18nHandler::getInstance()->assignVariables();
     ACLHandler::getInstance()->assignVariables($this->objectTypeID);
     WCF::getTPL()->assign(array('action' => 'add', 'availableStyles' => $this->availableStyles, 'menuItems' => $this->menuItems, 'objectTypeID' => $this->objectTypeID, 'pageList' => $this->pageList, 'stylesheetList' => $this->stylesheetList->getObjects(), 'title' => $this->title, 'alias' => $this->alias, 'description' => $this->description, 'createMenuItem' => $this->createMenuItem, 'metaDescription' => $this->metaDescription, 'metaKeywords' => $this->metaKeywords, 'allowIndexing' => $this->allowIndexing, 'parentID' => $this->parentID, 'showOrder' => $this->showOrder, 'invisible' => $this->invisible, 'enableDelayedDeactivation' => $this->enableDelayedDeactivation, 'publicationDate' => $this->publicationDate, 'enableDelayedPublication' => $this->enableDelayedPublication, 'deactivationDate' => $this->deactivationDate, 'menuItemID' => $this->menuItemID, 'isCommentable' => $this->isCommentable, 'availableDuringOfflineMode' => $this->availableDuringOfflineMode, 'allowSubscribing' => $this->allowSubscribing, 'styleID' => $this->styleID, 'stylesheetIDs' => $this->stylesheetIDs, 'sidebarOrientation' => $this->sidebarOrientation));
 }
 /**
  * @see	\wcf\system\cache\builder\AbstractCacheBuilder::rebuild()
  */
 public function rebuild(array $parameters)
 {
     $stylesheetList = new StylesheetList();
     $stylesheetList->readObjects();
     return $stylesheetList->getObjects();
 }