__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Image;
use Nextend\Framework\Image\Block\ImageManager\BlockImageManager;
use Nextend\Framework\Misc\Base64;
use Nextend\Framework\Pattern\VisualManagerTrait;
class ImageManager {
use VisualManagerTrait;
/**
* @var ImageStorage
*/
private static $model;
public static $loaded = array();
public function display() {
$imageManagerBlock = new BlockImageManager($this->MVCHelper);
$imageManagerBlock->display();
}
public static function init() {
self::$model = new ImageStorage();
}
public static function hasImageData($image) {
$image = self::$model->getByImage($image);
if (!empty($image)) {
return true;
}
return false;
}
public static function getImageData($image, $read = false) {
$visual = self::$model->getByImage($image);
if (empty($visual)) {
if ($read) {
return false;
} else {
$id = self::addImageData($image, ImageStorage::$emptyImage);
$visual = self::$model->getById($id);
}
}
self::$loaded[] = $visual;
return array_merge(ImageStorage::$emptyImage, json_decode(Base64::decode($visual['value']), true));
}
public static function addImageData($image, $value) {
return self::$model->add($image, $value);
}
public static function setImageData($image, $value) {
self::$model->setByImage($image, $value);
}
}
ImageManager::init();| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Block | Folder | 0775 |
|
|
| Joomla | Folder | 0775 |
|
|
| AbstractPlatformImage.php | File | 184 B | 0664 |
|
| ControllerAjaxImage.php | File | 2.53 KB | 0664 |
|
| Image.php | File | 1.87 KB | 0664 |
|
| ImageEdit.php | File | 25.02 KB | 0664 |
|
| ImageManager.php | File | 1.53 KB | 0664 |
|
| ImageStorage.php | File | 3.28 KB | 0664 |
|
| ModelImage.php | File | 2.34 KB | 0664 |
|