FluxBB\Models\ConfigRepository::data PHP Метод

data() защищенный Метод

protected data ( )
    protected function data()
    {
        if (!$this->loaded) {
            $this->data = $this->original = $this->cache->remember('fluxbb.config', 24 * 60, function () {
                $data = $this->database->table('config')->get();
                $cache = array();
                foreach ($data as $row) {
                    $cache[$row->conf_name] = $row->conf_value;
                }
                return $cache;
            });
            $this->loaded = true;
        }
        return $this->data;
    }