class VMware_VCloud_SDK_Helper
| static mixed|null |
getObjByXml(string $xml, string $return = null)
Parse XML form of a vCloud entity to a VMware vCloud data object. |
|
| static array |
getObjsByName(array $objs, string $name = null)
Return subset of input objects with the given name. |
|
| static VMware_VCloud_API_ReferenceType |
createReferenceTypeObj(string $url, string $tagName = null, string $type = null, string $name = null)
Construct a VMwareVCloudAPI_ReferenceType data object. |
|
| static string|null |
getUuidByUrl(string $url)
Get the UUID of a vCloud entity by parsing its URL. |
|
| static string|null |
getUrlByEntityId(VMware_VCloud_SDK_Service $service, string $eid)
Get a resource URL from its vCloud entity ID. |
|
| static array |
getMetadataKeys(mixed $obj)
Returns all the metadata keys. |
|
| static array|null |
getContainedLinks(string $ctype, string $rel, mixed $obj, string $method = 'getLink')
Get subset links of a VMware vCloud data object, filtered by 'type' and/or 'rel' attributes. |
static public mixed|null
getObjByXml(string $xml, string $return = null)
Parse XML form of a vCloud entity to a VMware vCloud data object.
static public array
getObjsByName(array $objs, string $name = null)
Return subset of input objects with the given name.
static public VMware_VCloud_API_ReferenceType
createReferenceTypeObj(string $url, string $tagName = null, string $type = null, string $name = null)
Construct a VMwareVCloudAPI_ReferenceType data object.
static public string|null
getUuidByUrl(string $url)
Get the UUID of a vCloud entity by parsing its URL.
It assumes the end of the URL given to the function is or contains the UUID.
static public string|null
getUrlByEntityId(VMware_VCloud_SDK_Service $service, string $eid)
Get a resource URL from its vCloud entity ID.
static public array
getMetadataKeys(mixed $obj)
Returns all the metadata keys.
static public array|null
getContainedLinks(string $ctype, string $rel, mixed $obj, string $method = 'getLink')
Get subset links of a VMware vCloud data object, filtered by 'type' and/or 'rel' attributes.
If a link with specified filter (using $ctype or $rel or both) does not exist, this means the desired opertion is not allowed on that resource entity.