Пример #1
0
 public function proxy(array $params)
 {
     $module = $params['module'];
     $func = $params['func'];
     $args = isset($params['args']) ? $params['args'] : '';
     SPVIDEOLITE_BOL_Service::callProcessorFunction($module, $func, $this);
 }
Пример #2
0
 public function index()
 {
     $this->assign('staticUrl', OW::getPluginManager()->getPlugin('spvideolite')->getStaticUrl());
     $this->assign('embedForm', $this->embedForm);
     $this->addComponent('dragDropCmp', OW::getClassInstance('SPVIDEOLITE_CMP_AjaxUpload'));
     // call selected module upload template
     $module = SPVIDEOLITE_BOL_Configs::getInstance()->get('processor');
     $func = 'add';
     if (SPVIDEOLITE_BOL_Configs::getInstance()->get('features.upload_video')) {
         $viewPath = SPVIDEOLITE_BOL_Service::callProcessorFunction($module, 'getViewPath', $this);
         $view = $func . '.html';
         $this->assign('uploadFormTpl', $viewPath . DS . $view);
         SPVIDEOLITE_BOL_Service::callProcessorFunction($module, $func, $this);
     }
 }