SpaceProxyExtension
trait SpaceProxyExtension
SpaceProxyExtension trait.
This trait is an extension to the Space resource class. It is built here and included as a trait to better separate concerns. This trait provides shortcuts for fetching resources that belong to a space.
Properties
Client | $client |
Methods
Returns the ID associated to the current space.
Returns a ContentType resource.
Returns a ResourceArray object which contains ContentType resources.
Returns a published ContentType resource.
Returns a ResourceArray object which contains published ContentType resources.
Returns a ContentTypeSnapshot resource.
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
Returns a DeliveryApiKey resource.
Returns a ResourceArray object containing DeliveryApiKey objects.
Returns an EditorInterface resource.
Returns a ResourceArray object which contains Entry resources.
Returns a EntrySnapshot resource.
Returns a ResourceArray object which contains EntrySnapshot resources.
Returns an Environment resource.
Returns a ResourceArray object which contains Environment resources.
Returns an Extension resource.
Returns a ResourceArray object containing Extension resources.
Returns a ResourceArray object containing Locale resources.
Returns a PreviewApiKey resource.
Returns a ResourceArray object containing PreviewApiKey resources.
Returns a SpaceMembership resource.
Returns a ResourceArray object containing SpaceMembership resources.
Returns a Webhook resource.
Returns a WebhookCall resource.
Returns a ResourceArray object containing WebhookCall resources.
Returns an WebhookHealth resource.
Details
at line 51
abstract protected string
getSpaceId()
Returns the ID associated to the current space.
at line 63
Asset
getAsset(string $environmentId, string $assetId)
Returns an Asset resource.
at line 82
ResourceArray
getAssets(string $environmentId, Query $query = \null)
Returns a ResourceArray object which contains Asset resources.
at line 101
ContentType
getContentType(string $environmentId, string $contentTypeId)
Returns a ContentType resource.
at line 120
ResourceArray
getContentTypes(string $environmentId, Query $query = \null)
Returns a ResourceArray object which contains ContentType resources.
at line 139
ContentType
getPublishedContentType(string $environmentId, string $contentTypeId)
Returns a published ContentType resource.
at line 158
ResourceArray
getPublishedContentTypes(string $environmentId, Query $query = \null)
Returns a ResourceArray object which contains published ContentType resources.
at line 178
ContentTypeSnapshot
getContentTypeSnapshot(string $environmentId, string $contentTypeId, string $snapshotId)
Returns a ContentTypeSnapshot resource.
at line 199
ResourceArray
getContentTypeSnapshots(string $environmentId, string $contentTypeId, Query $query = \null)
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
at line 218
DeliveryApiKey
getDeliveryApiKey(string $deliveryApiKeyId)
Returns a DeliveryApiKey resource.
at line 235
ResourceArray
getDeliveryApiKeys(Query $query = \null)
Returns a ResourceArray object containing DeliveryApiKey objects.
at line 253
EditorInterface
getEditorInterface(string $environmentId, string $contentTypeId)
Returns an EditorInterface resource.
at line 272
Entry
getEntry(string $environmentId, string $entryId)
Returns an Entry resource.
at line 291
ResourceArray
getEntries(string $environmentId, Query $query = \null)
Returns a ResourceArray object which contains Entry resources.
at line 311
EntrySnapshot
getEntrySnapshot(string $environmentId, string $entryId, string $snapshotId)
Returns a EntrySnapshot resource.
at line 332
ResourceArray
getEntrySnapshots(string $environmentId, string $entryId, Query $query = \null)
Returns a ResourceArray object which contains EntrySnapshot resources.
at line 351
Environment
getEnvironment(string $environmentId)
Returns an Environment resource.
at line 368
ResourceArray
getEnvironments(Query $query = \null)
Returns a ResourceArray object which contains Environment resources.
at line 386
Extension
getExtension(string $environmentId, string $extensionId)
Returns an Extension resource.
at line 404
ResourceArray
getExtensions(string $environmentId)
Returns a ResourceArray object containing Extension resources.
at line 422
Locale
getLocale(string $environmentId, string $localeId)
Returns a Locale resource.
at line 440
ResourceArray
getLocales(string $environmentId)
Returns a ResourceArray object containing Locale resources.
at line 457
PreviewApiKey
getPreviewApiKey(string $previewApiKeyId)
Returns a PreviewApiKey resource.
at line 474
ResourceArray
getPreviewApiKeys(Query $query = \null)
Returns a ResourceArray object containing PreviewApiKey resources.
at line 491
Role
getRole(string $roleId)
Returns a Role resource.
at line 508
ResourceArray
getRoles(Query $query = \null)
Returns a ResourceArray object containing Role resources.
at line 525
SpaceMembership
getSpaceMembership(string $spaceMembershipId)
Returns a SpaceMembership resource.
at line 542
ResourceArray
getSpaceMemberships(Query $query = \null)
Returns a ResourceArray object containing SpaceMembership resources.
at line 559
Upload
getUpload(string $uploadId)
Returns an Upload resource.
at line 576
Webhook
getWebhook(string $webhookId)
Returns a Webhook resource.
at line 593
ResourceArray
getWebhooks(Query $query = \null)
Returns a ResourceArray object containing Webhook resources.
at line 611
WebhookCall
getWebhookCall(string $webhookId, string $callId)
Returns a WebhookCall resource.
at line 630
ResourceArray
getWebhookCalls(string $webhookId, Query $query = \null)
Returns a ResourceArray object containing WebhookCall resources.
at line 648
WebhookHealth
getWebhookHealth(string $webhookId)
Returns an WebhookHealth resource.