__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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;
class Plugin {
private static $classes = array();
/**
* @param $eventName
* @param callable $callable
*/
public static function addAction($eventName, $callable) {
if (!isset(self::$classes[$eventName])) self::$classes[$eventName] = array();
self::$classes[$eventName][] = $callable;
}
static function addFilter($eventName, $callable) {
if (!isset(self::$classes[$eventName])) self::$classes[$eventName] = array();
self::$classes[$eventName][] = $callable;
}
public static function applyFilters($eventName, $value, $args = array()) {
if (self::hasAction($eventName)) {
foreach (self::$classes[$eventName] as $callable) {
if (is_callable($callable)) {
$value = call_user_func_array($callable, array_merge(array($value), $args));
}
}
}
return $value;
}
public static function doAction($eventName, $args = array()) {
if (self::hasAction($eventName)) {
foreach (self::$classes[$eventName] as $callable) {
if (is_callable($callable)) {
call_user_func_array($callable, $args);
}
}
}
}
public static function hasAction($eventName) {
if (isset(self::$classes[$eventName])) {
return true;
}
return false;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Acl | Folder | 0775 |
|
|
| Application | Folder | 0775 |
|
|
| Asset | Folder | 0775 |
|
|
| Browse | Folder | 0775 |
|
|
| Cache | Folder | 0775 |
|
|
| Content | Folder | 0775 |
|
|
| Controller | Folder | 0775 |
|
|
| Data | Folder | 0775 |
|
|
| Database | Folder | 0775 |
|
|
| FastImageSize | Folder | 0775 |
|
|
| Filesystem | Folder | 0775 |
|
|
| Font | Folder | 0775 |
|
|
| Form | Folder | 0775 |
|
|
| Image | Folder | 0775 |
|
|
| Localization | Folder | 0775 |
|
|
| Misc | Folder | 0775 |
|
|
| Model | Folder | 0775 |
|
|
| Notification | Folder | 0775 |
|
|
| Parser | Folder | 0775 |
|
|
| Pattern | Folder | 0775 |
|
|
| Platform | Folder | 0775 |
|
|
| Request | Folder | 0775 |
|
|
| ResourceTranslator | Folder | 0775 |
|
|
| Response | Folder | 0775 |
|
|
| Router | Folder | 0775 |
|
|
| Session | Folder | 0775 |
|
|
| Style | Folder | 0775 |
|
|
| Translation | Folder | 0775 |
|
|
| Url | Folder | 0775 |
|
|
| View | Folder | 0775 |
|
|
| Visual | Folder | 0775 |
|
|
| Api.php | File | 5.64 KB | 0664 |
|
| Cast.php | File | 277 B | 0664 |
|
| Framework.php | File | 412 B | 0664 |
|
| PageFlow.php | File | 590 B | 0664 |
|
| Plugin.php | File | 1.44 KB | 0664 |
|
| Sanitize.php | File | 31.4 KB | 0664 |
|
| Settings.php | File | 1.62 KB | 0664 |
|