__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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);
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Block | Folder | 0775 |
|
|
| ControllerAjaxStyle.php | File | 300 B | 0664 |
|
| ModelCss.php | File | 1.16 KB | 0664 |
|
| ModelStyle.php | File | 2.89 KB | 0664 |
|
| Style.php | File | 2.67 KB | 0664 |
|
| StyleManager.php | File | 360 B | 0664 |
|
| StyleParser.php | File | 1.28 KB | 0664 |
|
| StyleRenderer.php | File | 7.76 KB | 0664 |
|
| StyleStorage.php | File | 2.32 KB | 0664 |
|