| @@ -1,37 +1,37 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | -* | |
| 3 | +* | |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | -* | |
| 7 | +* | |
| 8 | 8 | */ |
| 9 | 9 | class CJTWordpressEvents extends CJTEvents { |
| 10 | - | |
| 10 | + | |
| 11 | 11 | /** |
| 12 | - * | |
| 12 | + * | |
| 13 | 13 | */ |
| 14 | 14 | const HOOK_ACTION = 'action'; |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | - * | |
| 17 | + * | |
| 18 | 18 | */ |
| 19 | 19 | const HOOK_CUSTOM = 'custom'; |
| 20 | - | |
| 20 | + | |
| 21 | 21 | /** |
| 22 | - * | |
| 22 | + * | |
| 23 | 23 | */ |
| 24 | 24 | const HOOK_FILTER = 'filter'; |
| 25 | - | |
| 25 | + | |
| 26 | 26 | /** |
| 27 | 27 | * put your comment there... |
| 28 | - * | |
| 28 | + * | |
| 29 | 29 | * @param mixed $options |
| 30 | 30 | */ |
| 31 | - public static function _init($options = array()) { | |
| 31 | + public static function __init($options = array()) { | |
| 32 | 32 | // Initialize CJTEvents! |
| 33 | - parent::_init($options); | |
| 33 | + parent::__init($options); | |
| 34 | 34 | // Extend all Hookable objects with CJTEvents events! |
| 35 | 35 | $events = new CJTWordpressEvents(__CLASS__, $options, true); |
| 36 | 36 | // Inherits all CJTEvents and CJTWordpressEvents Events to all hookable objects! |
| 37 | 37 | self::$definition->addBaseClass(__CLASS__, array('hookType' => self::HOOK_FILTER)); |
| @@ -36,12 +36,12 @@ | ||
| 36 | 36 | // Inherits all CJTEvents and CJTWordpressEvents Events to all hookable objects! |
| 37 | 37 | self::$definition->addBaseClass(__CLASS__, array('hookType' => self::HOOK_FILTER)); |
| 38 | 38 | return $events; |
| 39 | 39 | } |
| 40 | - | |
| 40 | + | |
| 41 | 41 | /** |
| 42 | 42 | * put your comment there... |
| 43 | - * | |
| 43 | + * | |
| 44 | 44 | * @param mixed $type |
| 45 | 45 | */ |
| 46 | 46 | protected function prepareEventTypeOptions($event) { |
| 47 | 47 | $type =& $event['type']; |
| @@ -60,12 +60,12 @@ | ||
| 60 | 60 | break; |
| 61 | 61 | } |
| 62 | 62 | return $event; |
| 63 | 63 | } |
| 64 | - | |
| 64 | + | |
| 65 | 65 | /** |
| 66 | 66 | * put your comment there... |
| 67 | - * | |
| 67 | + * | |
| 68 | 68 | * @param mixed $type |
| 69 | 69 | * @param mixed $params |
| 70 | 70 | */ |
| 71 | 71 | public function trigger($typeName, $params = array(), $typePrefixed = true) { |
| @@ -79,6 +79,6 @@ | ||
| 79 | 79 | $result = call_user_func(array(&$subject, 'callIndirect'), $params); |
| 80 | 80 | } |
| 81 | 81 | return $result; |
| 82 | 82 | } |
| 83 | - | |
| 83 | + | |
| 84 | 84 | } // End class. |