JavascriptJQueryUIEventSink Class Reference
[JQueryUI]
EventSink to catch JCSSManager events. More...
Inheritance diagram for
JavascriptJQueryUIEventSink:
Public Member Functions |
|
on_event ($event_name, $event_params, &$result) | |
Invoked to handle events. |
Detailed Description
EventSink to catch JCSSManager events.
Definition at line 8 of file javascript.jqueryui.eventsink.php.
Member Function Documentation
JavascriptJQueryUIEventSink::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 javascript.jqueryui.eventsink.php.
00018 { 00019 if ($event_name == 'jcssmanager_compress' || $event_name == 'jcssmanager_collect') { 00020 switch($event_params) { 00021 case JCSSManager::TYPE_JS: 00022 if ($event_name == 'jcssmanager_collect' && JQueryUI::uses_cdn()) { 00023 $result[] = JQueryUI::get_cdn_url(); 00024 } 00025 foreach(JQueryUI::get_js_paths(JQueryUI::get_enabled_components()) as $js) { 00026 $result[] = $js; 00027 } 00028 break; 00029 case JCSSManager::TYPE_CSS: 00030 foreach(JQueryUI::get_css_paths(JQueryUI::get_enabled_components()) as $css) { 00031 $result[] = $css; 00032 } 00033 break; 00034 } 00035 } 00036 }
The documentation for this class was generated from the following file:
- contributions/javascript.jqueryui/behaviour/base/javascript.jqueryui.eventsink.php