<?php


class SettingsScriptsExporter extends BaseDataExporter
{
    public function isOnlyForAdmin(): bool
    {
        return true;
    }

    public function getData(): array
    {
        $this->addScriptsToArchive();
        $data = $this->db->query("SELECT * FROM dashboard_scripts")->result_array();
        return ['info' => sizeof($data), 'data' => json_encode($data)];
    }
}
