PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
smart-slider-3
/
Nextend
/
Framework
<?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; } }
[+]
Form
[+]
Asset
[+]
Visual
[+]
FastImageSize
[-] Settings.php
[edit]
[+]
Platform
[+]
Style
[+]
Cache
[+]
Content
[-] Plugin.php
[edit]
[+]
Translation
[+]
View
[-] Cast.php
[edit]
[+]
Parser
[+]
Model
[+]
Localization
[+]
..
[+]
WordPress
[+]
Data
[+]
Application
[+]
Controller
[-] Api.php
[edit]
[+]
Misc
[+]
Database
[-] Sanitize.php
[edit]
[+]
Filesystem
[+]
Browse
[+]
Font
[+]
Session
[+]
Url
[+]
Request
[+]
Response
[+]
Pattern
[+]
ResourceTranslator
[+]
Notification
[+]
Image
[+]
Acl
[+]
Router
[-] Framework.php
[edit]
[-] PageFlow.php
[edit]