public function parseOptionsInput(XenForo_Input $input, array $widget)
 {
     $options = parent::parseOptionsInput($input, $widget);
     $options['html'] = null;
     $options['_text'] = $input->filterSingle(self::getNamePrefix() . 'text', XenForo_Input::STRING);
     return $options;
 }
示例#2
0
 public function parseOptionsInput(XenForo_Input $input, array $widget)
 {
     //        $options = XenForo_Application::get('options');
     //        $found = $options->EWRmedio_mediacount;
     if (!($addon = XenForo_Model::create('XenForo_Model_AddOn')->getAddOnById('EWRmedio')) || empty($addon['active'])) {
         throw new XenForo_Exception(new XenForo_Phrase('wf_x_not_installed', array('target' => 'EWRmedio')), true);
     }
     return parent::parseOptionsInput($input, $widget);
 }
 public function parseOptionsInput(XenForo_Input $input, array $widget)
 {
     $options = parent::parseOptionsInput($input, $widget);
     $class = $options['callback_class'];
     $method = $options['callback_method'];
     if (!XenForo_Application::autoload($class) || !method_exists($class, $method)) {
         throw new XenForo_Exception(new XenForo_Phrase('please_enter_valid_callback_method'), true);
     }
     return $options;
 }