Major overhaul of caching system (work in progress)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / cache / builder / TemplateGroupCacheBuilder.class.php
1 <?php
2 namespace wcf\system\cache\builder;
3 use wcf\data\template\group\TemplateGroupList;
4
5 /**
6 * Caches template groups.
7 *
8 * @author Marcel Werk
9 * @copyright 2001-2013 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package com.woltlab.wcf
12 * @subpackage system.cache.builder
13 * @category Community Framework
14 */
15 class TemplateGroupCacheBuilder extends AbstractCacheBuilder {
16 /**
17 * @see wcf\system\cache\builder\AbstractCacheBuilder::rebuild()
18 */
19 public function rebuild(array $parameters) {
20 $templateGroupList = new TemplateGroupList();
21 $templateGroupList->readObjects();
22
23 return $templateGroupList->getObjects();
24 }
25 }