contributions/css.defaultstyles/behaviour/base/css.defaultstyles.eventsink.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * EventSink to deal with Content change on domain or HtmlPage 00004 */ 00005 class CSSDefaultStylesEventSink implements IEventSink { 00006 /** 00007 * Invoked to handle events 00008 * 00009 * Events can be anything, and they are invoked through the router 00010 * One event is "cron", it has no parameters 00011 * 00012 * @param string Event name 00013 * @param mixed Event parameter(s) 00014 */ 00015 public function on_event($event_name, $event_params, &$result) { 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 } 00024 }