EnvironmentProxyExtension
trait EnvironmentProxyExtension
EnvironmentProxyExtension trait.
This trait is an extension to the Environment 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 an environment.
Properties
Client | $client |
Methods
Returns the ID associated to the current space.
Returns the ID associated to the current environment.
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 an EditorInterface resource.
Returns a EntrySnapshot resource.
Returns a ResourceArray object which contains EntrySnapshot resources.
Returns an Extension resource.
Returns a ResourceArray object containing Extension resources.
Returns a ResourceArray object containing Locale resources.
Details
at line 41
abstract protected string
getSpaceId()
Returns the ID associated to the current space.
at line 48
abstract protected string
getEnvironmentId()
Returns the ID associated to the current environment.
at line 59
Asset
getAsset(string $assetId)
Returns an Asset resource.
at line 77
ResourceArray
getAssets(Query $query = null)
Returns a ResourceArray object which contains Asset resources.
at line 95
ContentType
getContentType(string $contentTypeId)
Returns a ContentType resource.
at line 113
ResourceArray
getContentTypes(Query $query = null)
Returns a ResourceArray object which contains ContentType resources.
at line 131
ContentType
getPublishedContentType(string $contentTypeId)
Returns a published ContentType resource.
at line 149
ResourceArray
getPublishedContentTypes(Query $query = null)
Returns a ResourceArray object which contains published ContentType resources.
at line 168
ContentTypeSnapshot
getContentTypeSnapshot(string $contentTypeId, string $snapshotId)
Returns a ContentTypeSnapshot resource.
at line 188
ResourceArray
getContentTypeSnapshots(string $contentTypeId, Query $query = null)
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
at line 207
EditorInterface
getEditorInterface(string $contentTypeId)
Returns an EditorInterface resource.
at line 225
Entry
getEntry(string $entryId)
Returns an Entry resource.
at line 243
ResourceArray
getEntries(Query $query = null)
Returns a ResourceArray object which contains Entry resources.
at line 262
EntrySnapshot
getEntrySnapshot(string $entryId, string $snapshotId)
Returns a EntrySnapshot resource.
at line 282
ResourceArray
getEntrySnapshots(string $entryId, Query $query = null)
Returns a ResourceArray object which contains EntrySnapshot resources.
at line 301
Extension
getExtension(string $extensionId)
Returns an Extension resource.
at line 317
ResourceArray
getExtensions()
Returns a ResourceArray object containing Extension resources.
at line 334
Locale
getLocale(string $localeId)
Returns a Locale resource.
at line 350
ResourceArray
getLocales()
Returns a ResourceArray object containing Locale resources.