Beispiel #1
0
 public function _initialize()
 {
     if (!function_exists('xmlrpc_encode_request')) {
         throw new ModuleRequireException(__CLASS__, "XMLRPC module requires installed php_xmlrpc extension");
     }
     parent::_initialize();
 }
 public function _initialize()
 {
     $configOk = false;
     if (is_array($this->config['connectors'])) {
         foreach ($this->config['connectors'] as $connector => $connectorConfig) {
             if (is_array($connectorConfig)) {
                 $fields = array_keys($connectorConfig);
                 $configOk = array_intersect($this->connectorRequiredFields, $fields) == $this->connectorRequiredFields;
                 if (!$configOk) {
                     break;
                 }
             }
         }
     }
     if (!$configOk) {
         throw new ModuleConfigException(__CLASS__, "\nOptions: " . implode(', ', $this->connectorRequiredFields) . " are required\n\n                        Please, update the configuration and set all the required fields\n\n");
     }
     $this->timezone = $this->config['timezone'];
     parent::_initialize();
     foreach ($this->config['connectors'] as $connector => $connectorConfig) {
         if ($connectorConfig['populate']) {
             if ($connectorConfig['cleanup']) {
                 $this->cleanup($connector);
             }
             $this->loadDump($connector);
         }
     }
 }
 /**
  * Initialize module
  *
  * @return void
  */
 public function _initialize()
 {
     parent::_initialize();
     $this->module->_initialize();
 }