JavascriptJQueryEventSink Class Reference
[JQuery]
EventSink to deal with JCSSManager events. More...
Inheritance diagram for
JavascriptJQueryEventSink:
Public Member Functions |
|
on_event ($event_name, $event_params, &$result) | |
Invoked to handle events. |
Detailed Description
EventSink to deal with JCSSManager events.
Definition at line 8 of file javscript.jquery.eventsink.php.
Member Function Documentation
JavascriptJQueryEventSink::on_event | ( | $ | event_name, | |
$ | event_params, | |||
&$ | result | |||
) |
Invoked to handle events.
Events can be anything, and they are invoked through the router One event is "cron", it has no parameters
- Parameters:
-
string Event name mixed Event parameter(s)
Implements IEventSink.
Definition at line 18 of file javscript.jquery.eventsink.php.
00018 { 00019 switch ($event_name) { 00020 case 'jcssmanager_compress': 00021 if ($event_params == JCSSManager::TYPE_JS && Config::get_value(ConfigJQuery::CDN) == '') { 00022 array_unshift($result, 'js/jquery.js'); 00023 } 00024 break; 00025 case 'jcssmanager_collect': 00026 if ($event_params == JCSSManager::TYPE_JS && Config::has_feature(ConfigJQuery::ON_EVERY_PAGE)) { 00027 array_unshift($result, JQuery::get_path()); 00028 } 00029 break; 00030 } 00031 }
The documentation for this class was generated from the following file:
- contributions/javascript.jquery/behaviour/base/javscript.jquery.eventsink.php