1886aa35d402e53409ca0ab81b37d5e8e497f336
[GitHub/Stricted/Domain-Control-Panel.git] / lib / system / cache / builder / AclCacheBuilder.class.php
1 <?php
2 namespace dns\system\cache\builder;
3 use dns\system\DNS;
4
5 /**
6 * Caches the simple ACL settings per object type.
7 *
8 * @author Alexander Ebert
9 * @copyright 2001-2016 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Cache\Builder
12 */
13 class AclCacheBuilder extends AbstractCacheBuilder {
14 /**
15 * @inheritDoc
16 */
17 public function rebuild(array $parameters) {
18 $data = [];
19
20 $sql = "SELECT * FROM dns_soa_to_user";
21 $statement = DNS::getDB()->query($sql);
22
23 while ($row = DNS::getDB()->fetch_array($statement)) {
24 $data[] = $row;
25 }
26
27 return $data;
28 }
29 }