/**
  * @see wcf\system\cache\ICacheBuilder::getData()
  */
 public function getData(array $cacheResource)
 {
     $templateGroupList = new TemplateGroupList();
     $templateGroupList->sqlLimit = 0;
     $templateGroupList->readObjects();
     return $templateGroupList->getObjects();
 }
Example #2
0
 /**
  * @see	\wcf\page\IPage::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     I18nHandler::getInstance()->register('styleDescription');
     $this->setVariables();
     if (empty($_POST)) {
         $this->readStyleVariables();
     }
     $templateGroupList = new TemplateGroupList();
     $templateGroupList->sqlOrderBy = "templateGroupName";
     $templateGroupList->readObjects();
     $this->availableTemplateGroups = $templateGroupList->getObjects();
     if (isset($_REQUEST['tmpHash'])) {
         $this->tmpHash = StringUtil::trim($_REQUEST['tmpHash']);
     }
     if (empty($this->tmpHash)) {
         $this->tmpHash = StringUtil::getRandomID();
     }
 }
 /**
  * @see	\wcf\system\cache\builder\AbstractCacheBuilder::rebuild()
  */
 public function rebuild(array $parameters)
 {
     $templateGroupList = new TemplateGroupList();
     $templateGroupList->readObjects();
     return $templateGroupList->getObjects();
 }