Ejemplo n.º 1
0
 public function __construct($config, $zone)
 {
     parent::__construct();
     $this->config = $config;
     $this->zone = $zone;
     $this->rest = new Zones($this->config);
 }
Ejemplo n.º 2
0
 public function __construct($path = NULL)
 {
     parent::__construct();
     if ($path) {
         $this->loadFromFile($path);
     }
 }
Ejemplo n.º 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;
 }