Exemple #1
0
 /**
  * Test get shared IP group
  */
 public function testGetSharedIpGroup()
 {
     $groupId = self::$sharedIpGroup->getId();
     $group = $this->rackspace->getSharedIpGroup($groupId);
     $this->assertTrue($group !== false);
     $this->assertEquals($group->getId(), $groupId);
 }
Exemple #2
0
 /**
  * Get the server's array of the shared IP group
  * 
  * @return string 
  */
 public function getServersId()
 {
     if (empty($this->serversId)) {
         $info= $this->service->getSharedIpGroup($this->id);
         if (($info!==false)) {
             $info= $info->toArray();
             if (isset($info['servers'])) {
                 $this->serversId= $info['servers'];
             }
         }    
     }
     return $this->serversId;
 }