.

CSSDefaultStylesEventSink Class Reference

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

Inheritance diagram for CSSDefaultStylesEventSink:
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.defaultstyles.eventsink.php.


Member Function Documentation

CSSDefaultStylesEventSink::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.defaultstyles.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/default.css';
00020                                         break;                                  
00021                         }
00022                 }
00023         }

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