コード例 #1
0
 /**
  * put your comment there...
  * 
  * @param mixed $type
  * @param mixed $observer
  */
 public function unbind($typeName, $observer)
 {
     $events = isset($this) && isset($this->events) ? $this->events : CJTWordpressEvents::getTypeEvents($typeName, false);
     return $events->unbind($typeName, $observer, false);
 }
コード例 #2
0
/** Access Points  path */
define('CJTOOLBOX_ACCESS_POINTS', CJTOOLBOX_PATH . '/access.points');
/** Frmaework path */
define('CJTOOLBOX_FRAMEWORK', CJTOOLBOX_INCLUDE_PATH);
// Alias to include path!
// Class Autoload Added @since 6.2.
require 'autoload.inc.php';
// Import dependencies
require_once CJTOOLBOX_FRAMEWORK . '/php/includes.class.php';
require_once CJTOOLBOX_FRAMEWORK . '/events/definition.class.php';
require_once CJTOOLBOX_FRAMEWORK . '/events/events.class.php';
require_once CJTOOLBOX_FRAMEWORK . '/events/wordpress.class.php';
require_once CJTOOLBOX_FRAMEWORK . '/events/hookable.interface.php';
require_once CJTOOLBOX_FRAMEWORK . '/events/hookable.class.php';
// Initialize events engine/system!
CJTWordpressEvents::__init(array('hookType' => CJTWordpressEvents::HOOK_ACTION));
CJTWordpressEvents::$paths['subjects']['core'] = CJTOOLBOX_FRAMEWORK . '/events/subjects';
CJTWordpressEvents::$paths['observers']['core'] = CJTOOLBOX_FRAMEWORK . '/events/observers';
/**
* CJT Plugin interface.
* 
* The CJT Plugin is maximum deferred.
* All functionality here is just to detect if the request should be processed!
* 
* The main class is located css-js-toolbox.class.php cssJSToolbox class
* The plugin is fully developed using Model-View-Controller design pattern.
* 
* access.points directory has all the entry points that processed by the Plugin.
* 
* @package CJT
* @author Ahmed Said