.

CSSYamlEventSink Class Reference

EventSink to deal with Content change on domain or HtmlPage. More...

Inheritance diagram for CSSYamlEventSink:
IEventSink

List of all members.

Public Member Functions

  on_event ($event_name, $event_params, &$result)
  Invoked to handle events.

Detailed Description

EventSink to deal with Content change on domain or HtmlPage.

Definition at line 5 of file css.yaml.eventsink.php.


Member Function Documentation

CSSYamlEventSink::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 15 of file css.yaml.eventsink.php.

00015                                                                        {
00016                 if ($event_name == 'jcssmanager_compress' || $event_name == 'jcssmanager_collect') {
00017                         switch($event_params) {
00018                                 case JCSSManager::TYPE_CSS:
00019                                         $result[] = 'css/my_layout.css';
00020                                         break;                                  
00021                                 case JCSSManager::TYPE_CSS_IE7:
00022                                 case JCSSManager::TYPE_CSS_IE6:
00023                                         $result[] = 'css/patches/patch_my_layout.css';
00024                                         break;
00025                         }
00026                 }
00027         }

The documentation for this class was generated from the following file: