Example #1
0
 /**
  * returns a Collection of PTR records for a given Server
  *
  * @param \OpenCloud\Compute\Server $server the server for which to
  *      retrieve the PTR records
  * @return Collection
  */
 public function PtrRecordList(Server $server)
 {
     $service_name = $server->Service()->Name();
     $url = $this->Url('rdns/' . $service_name) . '?' . $this->MakeQueryString(array('href' => $server->Url()));
     return $this->Collection('\\OpenCloud\\DNS\\PtrRecord', $url);
 }
Example #2
0
 /**
  * creates the object
  *
  * This overrides the default constructor so that we can save off the
  * server to which this attachment is associated.
  */
 public function __construct(Server $server, $id = null)
 {
     $this->_server = $server;
     return parent::__construct($server->Service(), $id);
 }