Example #1
0
 /**
  * Init the class
  */
 protected function init($config)
 {
     //--- Init the class:
     Basic::initClass($this, $config);
     //--- Create loggers:
     if (!is_object($this->debugLogger) || isset($config['debug'])) {
         $this->debugLogger = new Debug($this->debug);
     }
     if (!is_object($this->errorLogger) || isset($config['error'])) {
         $this->errorLogger = new Logger($this->error);
     }
 }
Example #2
0
 /**
  * Init the class
  */
 private function init($config)
 {
     //--- Init the class:
     Basic::initClass($this, $config);
 }
Example #3
0
 /**
  * Init the class
  */
 protected function init($config)
 {
     //--- Init the class:
     Basic::initClass($this, $config);
     //--- Reset:
     $this->agentStatus = null;
     $this->agentVersion = null;
     $this->agentReadCommunity = null;
     $this->setError();
     snmp_set_oid_output_format($this->oidOutputFormat);
 }