/** * DNS PTR Create() method requires a server * * Generally called as `Create(array('server'=>$server))` */ public function create($params = array()) { $this->populate($params); $this->link_rel = $this->server->getService()->name(); $this->link_href = $this->server->url(); return parent::create(); }
public function create($params = array()) { $this->populateRecord($params); $this->link_rel = $this->getDeviceParent()->getService()->getName(); $this->link_href = (string) $this->getDeviceParent()->getUrl(); return parent::create(); }