Asset
class Asset extends BaseProxy
Asset class.
Properties
protected Client | $client | from BaseProxy | |
protected string|null | $spaceId | from BaseProxy | |
protected bool | $requiresSpaceId | Whether the current proxy requires a space ID for working properly. | from BaseProxy |
Methods
Returns the string to be used as baseUri option, or null otherwise.
No description
No description
Override this method in a proxy class if special headers are to be defined upon creation.
No description
No description
No description
No description
No description
No description
Returns the URI for the current proxy type.
An array of enabled methods for the current proxy.
Returns an Asset object which corresponds to the given resource ID in Contentful.
Details
in BaseProxy at line 76
ResourceInterface
__call(string $name, array $arguments)
Acts as a whitelister for protected methods.
in BaseProxy at line 91
protected string|null
getBaseUri()
Returns the string to be used as baseUri option, or null otherwise.
in BaseProxy at line 103
protected ResourceInterface|ResourceArray
getResource(array $values, Query $query = null, ResourceInterface $resource = null)
in BaseProxy at line 130
protected ResourceInterface
requestResource(string $method, string $uriSuffix, ResourceInterface|string $resource, int $version = null, mixed $body = null)
in BaseProxy at line 158
protected string
getResourceId(ResourceInterface|string $resource)
at line 27
ResourceInterface
create(Asset $resource, string $resourceId = null)
in BaseProxy at line 198
protected string[]
getCreateAdditionalHeaders(ResourceInterface $resource)
Override this method in a proxy class if special headers are to be defined upon creation.
at line 27
ResourceInterface
update(Asset $resource)
at line 27
ResourceInterface
delete(Asset|string $resource, int $version = null)
at line 27
ResourceInterface
archive(Asset|string $resource, int $version = null)
at line 27
ResourceInterface
unarchive(Asset|string $resource, int $version = null)
at line 27
ResourceInterface
publish(Asset|string $resource, int $version = null)
at line 27
ResourceInterface
unpublish(Asset|string $resource, int $version = null)
at line 32
protected string
getResourceUri(array $values)
Returns the URI for the current proxy type.
at line 40
string[]
getEnabledMethods()
An array of enabled methods for the current proxy.
at line 54
Asset
get(string $resourceId)
Returns an Asset object which corresponds to the given resource ID in Contentful.
at line 70
ResourceArray
getAll(Query $query = null)
Returns a ResourceArray object containing Asset objects.