db = $db; $this->gateway = $gateway; } /** * @param int $id * * @return array */ public function getTemplateById(int $id): array { return $this->db->fetchRow( 'SELECT s.id, s.title, s.category, s.description, s.filename, s.created_at, s.footer_icons FROM `systemtemplates` AS `s` WHERE s.hidden = 0 AND s.id = :id', ['id' => $id] ); } /** * @return array */ public function getTables(): array { return $this->gateway->getTables(); } /** * @return array */ public function getTablesChecksum(): array { return $this->gateway->getTablesChecksum(); } /** * @return array */ public function getAdminUserIds(): array { return $this->gateway->getAdminUserIds(); } }