JavascriptCKEditorEventSink Class Reference
[JQuery]
EventSink to deal with JCSSManager events. More...
Inheritance diagram for
JavascriptCKEditorEventSink:
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 javascript.ckeditor.eventsink.php.
Member Function Documentation
JavascriptCKEditorEventSink::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.ckeditor.eventsink.php.
00018 { 00019 if ($event_name == 'jcssmanager_compress') { 00020 switch($event_params) { 00021 case JCSSManager::TYPE_JS: 00022 Load::components('ckeditor'); 00023 // Create a compressed file for each config 00024 foreach(CKEditor::get_all_configs() as $name => $config) { 00025 $compressed_name = 'ckeditor.' . $name; 00026 $result[$compressed_name][] = 'js/ckeditor/ckeditor.js'; 00027 if (Load::is_module_loaded('javascript.jquery')) { 00028 $result[$compressed_name][] = 'js/ckeditor/adapters/jquery.js'; 00029 } 00030 $result[$compressed_name][] = $config->init_file; 00031 } 00032 break; 00033 } 00034 } 00035 }
The documentation for this class was generated from the following file:
- contributions/javascript.ckeditor/behaviour/base/javascript.ckeditor.eventsink.php