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