예제 #1
0
 function __construct($hooks, $info = NULL, $settings = array())
 {
     parent::__construct($hooks, $info, $settings);
     if (isset($this->settings['format']) && $this->settings['format'] == "json" && !function_exists('json_decode')) {
         $this->log("JSON exchange format is not supported - will use PHP instead", LL_WARNING);
         $this->settings['format'] = "php";
     }
 }
예제 #2
0
 function __construct($exchanger, $info, $hooks, $settings)
 {
     $this->exchanger = $exchanger;
     try {
         parent::__construct($hooks, $info, $settings);
     } catch (ApibotException $exception) {
         throw new ApibotException_InternalError("Module " . $this->modulename . " appears to be unsupported by this wiki");
     }
 }
예제 #3
0
 function __construct($hooks, $info, $settings, $is_generator)
 {
     $this->is_generator = $is_generator;
     parent::__construct($hooks, $info, $settings);
 }