/** * put your comment there... * * @param mixed $options */ public static function __init($options = array()) { // Initialize CJTEvents! parent::__init($options); // Extend all Hookable objects with CJTEvents events! $events = new CJTWordpressEvents(__CLASS__, $options, true); // Inherits all CJTEvents and CJTWordpressEvents Events to all hookable objects! self::$definition->addBaseClass(__CLASS__, array('hookType' => self::HOOK_FILTER)); return $events; }
/** * put your comment there... * * @param mixed $options */ public static function __init($options = array()) { if (!self::$definition) { self::$defaultOptions += $options; // Definition object! self::$definition = new CJTEventsDefinition(); // Paths! self::$paths['subjects'] = new CJTIncludes('subjects'); self::$paths['observers'] = new CJTIncludes('observers'); } }