Пример #1
0
 public function __construct($config, $zone)
 {
     parent::__construct();
     $this->config = $config;
     $this->zone = $zone;
     $this->rest = new Zones($this->config);
 }
Пример #2
0
 public function __construct($path = NULL)
 {
     parent::__construct();
     if ($path) {
         $this->loadFromFile($path);
     }
 }
Пример #3
0
 public function __construct($config, $parentZone, $domain, $type)
 {
     parent::__construct();
     $this->rest = new Records($config);
     $this->parentZone = $parentZone;
     if (strstr($domain, $parentZone->zone) === false) {
         $domain .= '.' . $parentZone->zone;
     }
     $this->domain = $domain;
     $this->type = $type;
 }