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 an Asset resource.
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 an Entry 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 Locale resource.
Returns a ResourceArray object containing Locale resources.
Details
at line 42
abstract protected string
getSpaceId()
Returns the ID associated to the current space.
at line 49
abstract protected string
getEnvironmentId()
Returns the ID associated to the current environment.
at line 56
getAsset(string $assetId)
Returns an Asset resource.
at line 70
getAssets(Query $query = null)
Returns a ResourceArray object which contains Asset resources.
at line 84
getContentType(string $contentTypeId)
Returns a ContentType resource.
at line 98
getContentTypes(Query $query = null)
Returns a ResourceArray object which contains ContentType resources.
at line 112
getPublishedContentType(string $contentTypeId)
Returns a published ContentType resource.
at line 126
getPublishedContentTypes(Query $query = null)
Returns a ResourceArray object which contains published ContentType resources.
at line 140
getContentTypeSnapshot(string $contentTypeId, string $snapshotId)
Returns a ContentTypeSnapshot resource.
at line 155
getContentTypeSnapshots(string $contentTypeId, Query $query = null)
Returns a ResourceArray object which contains ContentTypeSnapshot resources.
at line 170
getEditorInterface(string $contentTypeId)
Returns an EditorInterface resource.
at line 184
getEntry(string $entryId)
Returns an Entry resource.
at line 198
getEntries(Query $query = null)
Returns a ResourceArray object which contains Entry resources.
at line 212
getEntrySnapshot(string $entryId, string $snapshotId)
Returns a EntrySnapshot resource.
at line 227
getEntrySnapshots(string $entryId, Query $query = null)
Returns a ResourceArray object which contains EntrySnapshot resources.
at line 242
getExtension(string $extensionId)
Returns an Extension resource.
at line 256
getExtensions()
Returns a ResourceArray object containing Extension resources.
at line 269
getLocale(string $localeId)
Returns a Locale resource.
at line 283
getLocales()
Returns a ResourceArray object containing Locale resources.