00001 <?php
00002
00003
00004
00005 class CSSYamlEventSink implements IEventSink {
00006
00007
00008
00009
00010
00011
00012
00013
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/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 }
00028 }