__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\SmartSlider3\Generator;
use Nextend\Framework\Pattern\GetAssetsPathTrait;
use Nextend\Framework\Url\Url;
abstract class AbstractGeneratorGroup {
use GetAssetsPathTrait;
protected $name = '';
/** @var AbstractGeneratorGroupConfiguration */
protected $configuration;
protected $needConfiguration = false;
protected $url = '';
/** @var AbstractGenerator[] */
protected $sources = array();
protected $isLoaded = false;
protected $isDeprecated = false;
public function __construct() {
GeneratorFactory::addGenerator($this);
}
/**
* @return AbstractGeneratorGroup $this
*/
public function load() {
if (!$this->isLoaded) {
if ($this->isInstalled()) {
$this->loadSources();
}
$this->isLoaded = true;
}
return $this;
}
protected abstract function loadSources();
public function addSource($name, $source) {
$this->sources[$name] = $source;
}
/**
* @param $name
*
* @return false|AbstractGenerator
*/
public function getSource($name) {
if (!isset($this->sources[$name])) {
return false;
}
return $this->sources[$name];
}
/**
* @return AbstractGenerator[]
*/
public function getSources() {
return $this->sources;
}
public function hasConfiguration() {
return !!$this->configuration;
}
/**
* @return AbstractGeneratorGroupConfiguration
*/
public function getConfiguration() {
return $this->configuration;
}
/**
* @return string
*
*/
public abstract function getLabel();
/**
* @return string
*/
public function getDescription() {
return n2_('No description.');
}
/**
* @return string
*/
public function getName() {
return $this->name;
}
/**
* @return string
*/
public function getError() {
return n2_('Generator not found');
}
/**
* @return string
*/
public function getDocsLink() {
return 'https://smartslider.helpscoutdocs.com/article/1999-dynamic-slides';
}
public function isInstalled() {
return true;
}
/**
* @return string
*/
public function getUrl() {
return $this->url;
}
public function getImageUrl() {
return Url::pathToUri(self::getAssetsPath() . '/dynamic.png');
}
/**
* @return bool
*/
public function isDeprecated() {
return $this->isDeprecated;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Common | Folder | 0775 |
|
|
| Joomla | Folder | 0775 |
|
|
| AbstractGenerator.php | File | 3.84 KB | 0664 |
|
| AbstractGeneratorGroup.php | File | 2.6 KB | 0664 |
|
| AbstractGeneratorGroupConfiguration.php | File | 2.44 KB | 0664 |
|
| AbstractGeneratorLoader.php | File | 755 B | 0664 |
|
| Generator.php | File | 5.43 KB | 0664 |
|
| GeneratorFactory.php | File | 1.04 KB | 0664 |
|