/** * Specialized JSON for DNS PTR creates and updates */ protected function CreateJson() { $object = new \stdClass(); $object->recordsList = parent::CreateJson(); // add links from server $object->link = new \stdClass(); $object->link->href = $this->link_href; $object->link->rel = $this->link_rel; return $object; }
/** * Specialized JSON for DNS PTR creates and updates */ protected function createJson() { return (object) array('recordsList' => parent::createJson(), 'link' => array('href' => $this->link_href, 'rel' => $this->link_rel)); }