/**
  * Constructor
  *
  * @param string $host
  * @param string $port
  * @param array $authinfo
  * @param string $rndc_path
  * @param string $namedconf_path
  * @param string $nameddb_path
  * @param string $zonetemplate
  */
 function __construct($host, $port, $authinfo, $rndc_path, $namedconf_path, $nameddb_path, $zonetemplate, $inittransport = true)
 {
     // Call Bind class construct
     parent::__construct($namedconf_path, $nameddb_path, $zonetemplate, $rndc_path, false);
     $this->Logger = Logger::getLogger('RemoteBIND');
     $this->Host = $host;
     $this->Port = $port;
     $this->Authinfo = $authinfo;
     $this->Transport = self::DEFAULT_TRANSPORT;
     if ($inittransport) {
         if (!$this->InitTransport()) {
             throw new Exception("Cannot init transport");
         }
     }
     $this->DoMakeBackup = false;
     $this->HaveNewZones = 0;
 }
Example #2
0
		/**
		 * Constructor
		 *
		 * @param string $host
		 * @param string $port
		 * @param array $authinfo
		 * @param string $rndc_path
		 * @param string $namedconf_path
		 * @param string $nameddb_path
		 * @param string $zonetemplate
		 */
		function __construct($host, $port, $authinfo, $rndc_path, $namedconf_path, $nameddb_path, $zonetemplate, $inittransport= true)
		{
			// Call Bind class construct
			parent::__construct($namedconf_path, $nameddb_path, $zonetemplate, $rndc_path, false);	

			$this->Host = $host;
			$this->Port = $port;
			$this->Authinfo = $authinfo;
					
			$this->Transport = self::DEFAULT_TRANSPORT;
			
			if ($inittransport)
				if (!$this->InitTransport())
					Core::RaiseError("Cannot init transport");
			
			$this->DoMakeBackup = false;
			$this->HaveNewZones = 0;
		}