The Metadata Helper gives you the ability to manipulate metadata on vCloud objects with ease. It helps finding objects with a particular metadata (to either one particular value, or any value).
__construct(\VMware_VCloud_SDK_Service $service)
\VMware_VCloud_SDK_Service
The vCloud Director SDK Service
create(\VMware_VCloud_SDK_Service $service) : \VCloud\Helpers\Metadata
\VCloud\Helpers\Metadata::create($service)->queryRecords(...)
Since PHP 5.4, Class member access on instantiation is allowed:
new (\VCloud\Helpers\Metadata($service))->queryRecords(...)
\VMware_VCloud_SDK_Service
The vCloud Director SDK Service
\VCloud\Helpers\Metadata
Returns a new Metadata Handler
doesEntryMatch(\VMware_VCloud_API_MetadataEntryType $entry, string $metadataName, string $metadataValue = null) : boolean
\VMware_VCloud_API_MetadataEntryType
The metadata entry to test
string
The expected name
string
The expected value (optional)
boolean
Returns true
if the entry has the expected name (and the expected value, if given)
doesObjectMatch(mixed $object, string $metadataName, string $metadataValue) : boolean
mixed
The vCloud object to test
string
The expected name
string
The expected value (optional)
boolean
Returns true
if the object contains a metadata with the
expected name (and the expected value, if given)
getObjects(string $type, string $metadataName, string $metadataValue = null) : array
string
The expected query type, see Query helper
string
The expected name
string
The expected value (optional)
array
Returns all objects containing a metadata with the expected name (and the expected value, if given)
getObject(string $type, string $metadataName, string $metadataValue = null) : mixed
string
The expected query type, see Query helper
string
The expected name
string
The expected value (optional)
mixed
Returns the first objects containing a metadata with the expected name (and the expected value, if given)
service : \VMware_VCloud_SDK_Service
var |
vCloud Director SDK Service |
---|
\VMware_VCloud_SDK_Service