示例#1
0
 public static function instance(Zend_Config $options)
 {
     if (self::$_instance === null) {
         self::$_instance = new self($options);
     }
     return self::$_instance;
 }
示例#2
0
 public function init(Zend_Config $options)
 {
     $language = new X_VlcShares_Plugins_Helper_Language($options->get('language', new Zend_Config(array())));
     $ffmpeg = new X_VlcShares_Plugins_Helper_FFMpeg($options->get('ffmpeg', new Zend_Config(array())));
     $devices = new X_VlcShares_Plugins_Helper_Devices($options->get('devices', new Zend_Config(array())));
     $stream = new X_VlcShares_Plugins_Helper_Stream($options->get('stream', new Zend_Config(array())));
     $paginator = new X_VlcShares_Plugins_Helper_Paginator($options->get('paginator', new Zend_Config(array())));
     $hoster = new X_VlcShares_Plugins_Helper_Hoster();
     $rtmpdump = new X_VlcShares_Plugins_Helper_RtmpDump($options->get('rtmpdump', new Zend_Config(array())));
     $sopcast = new X_VlcShares_Plugins_Helper_SopCast($options->get('sopcast', new Zend_Config(array())));
     //$vlc = new X_VlcShares_Plugins_Helper_Vlc($options->get('vlc', new Zend_Config(array())));
     $streamer = new X_VlcShares_Plugins_Helper_Streamer($options->get('streamer', new Zend_Config(array())));
     $acl = X_VlcShares_Plugins_Helper_Acl::instance($options->get('acl', new Zend_Config(array())));
     $this->registerHelper('language', $language, true)->registerHelper('ffmpeg', $ffmpeg, true)->registerHelper('devices', $devices, true)->registerHelper('stream', $stream, true)->registerHelper('paginator', $paginator, true)->registerHelper('hoster', $hoster, true)->registerHelper('rtmpdump', $rtmpdump, true)->registerHelper('streamer', $streamer, true)->registerHelper('sopcast', $sopcast, true)->registerHelper('acl', $acl, true);
 }