示例#1
0
 /**
  * returns a Collection of PTR records for a given Server
  *
  * @param \OpenCloud\Compute\Resource\Server $server the server for which to
  *      retrieve the PTR records
  * @return \OpenCloud\Common\Collection
  */
 public function ptrRecordList(Server $server)
 {
     $url = $this->getUrl()->addPath('rdns')->addPath($server->getService()->name())->setQuery(array('href' => $server->url()));
     return $this->collection('OpenCloud\\DNS\\Resource\\PtrRecord', $url);
 }
示例#2
0
文件: Service.php 项目: huhugon/sso
 /**
  * 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)
 {
     $url = $this->url('rdns/' . $server->getService()->name(), array('href' => $server->url()));
     return $this->collection('OpenCloud\\DNS\\Resource\\PtrRecord', $url);
 }