BaseProxy
class BaseProxy
BaseProxy class.
Properties
protected Client | $client | ||
protected string|null | $spaceId | ||
protected bool | $requiresSpaceId | Whether the current proxy requires a space ID for working properly. |
Methods
Acts as a whitelister for protected methods.
Returns the string to be used as baseUri option, or null otherwise.
No description
Override this method in a proxy class if special headers are to be defined upon creation.
Returns the URI for the current proxy type.
An array of enabled methods for the current proxy.
Details
at line 52
__construct(Client $client, string $spaceId = null)
BaseProxy constructor.
at line 76
ResourceInterface
__call(string $name, array $arguments)
Acts as a whitelister for protected methods.
at line 91
protected string|null
getBaseUri()
Returns the string to be used as baseUri option, or null otherwise.
at line 103
protected ResourceInterface|ResourceArray
getResource(array $values, Query $query = null, ResourceInterface $resource = null)
at line 130
protected ResourceInterface
requestResource(string $method, string $uriSuffix, ResourceInterface|string $resource, int $version = null, mixed $body = null)
at line 158
protected string
getResourceId(ResourceInterface|string $resource)
at line 173
protected
create(Creatable $resource, string $resourceId = null)
Creates a resource.
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 208
protected
update(Updatable $resource)
Updates a resource.
at line 219
protected
delete(ResourceInterface|string $resource, int $version = null)
Deletes a resource.
at line 234
protected
archive(ResourceInterface|string $resource, int $version = null)
Archives a resource.
at line 249
protected
unarchive(ResourceInterface|string $resource, int $version = null)
Unarchives a resource.
at line 264
protected
publish(ResourceInterface|string $resource, int $version = null)
Publishes a resource.
at line 279
protected
unpublish(ResourceInterface|string $resource, int $version = null)
Unpublishes a resource.
at line 295
abstract protected string
getResourceUri(array $values)
Returns the URI for the current proxy type.
at line 302
abstract string[]
getEnabledMethods()
An array of enabled methods for the current proxy.