The Right Helper provides various helper methods to facilitate using the vCloud Director SDK's service objects.
__construct(\VMware_VCloud_SDK_Service $service) : \VCloud\Helpers\Service
\VMware_VCloud_SDK_Service
The vCloud Director SDK Service
\VCloud\Helpers\Service
Returns a new Service Handler
create(\VMware_VCloud_SDK_Service $service)
\VCloud\Helpers\Service::create($service)->queryRecords(...)
Since PHP 5.4, Class member access on instantiation is allowed:
new (\VCloud\Helpers\Service($service))->queryRecords(...)
\VMware_VCloud_SDK_Service
The vCloud Director SDK Service
createReference(string $type, string $href, string $name = null)
string
Object type
string
Href of the object
string
Name of the object
getId(mixed $object) : string
mixed
The source object
string
Returns the given object's UUID
getCurrentUserName() : string
string
Returns name as it's returned by vCloud Director (not lowercased neither uppercased).
getCurrentOrganizationName() : string
string
Returns name as it's returned by vCloud Director (not lowercased neither uppercased).
getCurrentOrganization() : \VMware_VCloud_SDK_AdminOrg
\VMware_VCloud_SDK_AdminOrg
Returns the currently logged user's organization
getCurrentUser() : \VMware_VCloud_SDK_User
\VMware_VCloud_SDK_User
Returns the currently logged user
PATTERN_UUID
var |
Regular expression to extract UUID from any string |
---|
service : \VMware_VCloud_SDK_Service
var |
vCloud Director SDK Service |
---|
\VMware_VCloud_SDK_Service