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_ServiceThe vCloud Director SDK Service
\VCloud\Helpers\ServiceReturns 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_ServiceThe vCloud Director SDK Service
createReference(string $type, string $href, string $name = null)
stringObject type
stringHref of the object
stringName of the object
getId(mixed $object) : string
mixedThe source object
stringReturns the given object's UUID
getCurrentUserName() : string
stringReturns name as it's returned by vCloud Director (not lowercased neither uppercased).
getCurrentOrganizationName() : string
stringReturns name as it's returned by vCloud Director (not lowercased neither uppercased).
getCurrentOrganization() : \VMware_VCloud_SDK_AdminOrg
\VMware_VCloud_SDK_AdminOrgReturns the currently logged user's organization
getCurrentUser() : \VMware_VCloud_SDK_User
\VMware_VCloud_SDK_UserReturns 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