Exemplo n.º 1
0
 /**
  * returns a Collection of subdomains
  *
  * The subdomains are all `DNS:Domain` objects that are children of
  * the current domain.
  *
  * @param array $filter key/value pairs for query string parameters
  *                      return \OpenCloud\Collection
  */
 public function subdomainList($filter = array())
 {
     $url = $this->getUrl(Subdomain::resourceName(), $filter);
     return $this->getParent()->collection('OpenCloud\\DNS\\Resource\\Subdomain', $url, $this);
 }
Exemplo n.º 2
0
 /**
  * returns a Subdomain object (child of current domain)
  *
  */
 public function subdomain($info = array())
 {
     $resource = new Subdomain($this->getService());
     $resource->setParent($this)->populate($info);
     return $resource;
 }