contributions/socialbookmarking/behaviour/base/socialbookmarking.eventsink.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * EventSink to deal with JCSSManager events 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup SocialBookmarking 00007 */ 00008 class SocialBookmarkingEventSink implements IEventSink { 00009 /** 00010 * Invoked to handle events 00011 * 00012 * Events can be anything, and they are invoked through the router 00013 * One event is "cron", it has no parameters 00014 * 00015 * @param string Event name 00016 * @param mixed Event parameter(s) 00017 */ 00018 public function on_event($event_name, $event_params, &$result) { 00019 if ($event_name == 'jcssmanager_compress') { 00020 switch($event_params) { 00021 case JCSSManager::TYPE_CSS: 00022 $result['socialbookmarking'] = array('css/socialbookmarking.css'); 00023 break; 00024 } 00025 } 00026 } 00027 }