Esempio n. 1
0
 /**
  * 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));
 }
Esempio n. 2
0
 /**
  * returns a Collection of Record objects
  *
  * @param array $filter query-string parameters
  * @return \OpenCloud\Collection
  */
 public function recordList($filter = array())
 {
     $url = $this->getUrl(Record::resourceName(), $filter);
     return $this->getParent()->collection('OpenCloud\\DNS\\Resource\\Record', $url, $this);
 }
Esempio n. 3
0
 /**
  * returns a Record object
  *
  * Note that this method is available at the DNS level, but only for
  * PTR records.
  *
  * @return Record
  */
 public function record($info = null)
 {
     $resource = new Record($this->getService());
     $resource->setParent($this)->populate($info);
     return $resource;
 }