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.
Shortcut for resolving links.
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 54
__construct(Client $client, string $spaceId = null)
BaseProxy constructor.
at line 78
ResourceInterface
__call(string $name, array $arguments)
Acts as a whitelister for protected methods.
at line 93
protected string|null
getBaseUri()
Returns the string to be used as baseUri option, or null otherwise.
at line 105
ResourceInterface
resolveLink(Link $link)
Shortcut for resolving links.
at line 117
protected ResourceInterface|ResourceArray
getResource(array $values, Query $query = null, ResourceInterface $resource = null)
at line 144
protected ResourceInterface
requestResource(string $method, string $uriSuffix, ResourceInterface|string $resource, int $version = null, mixed $body = null)
at line 172
protected string
getResourceId(ResourceInterface|string $resource)
at line 187
protected
create(Creatable $resource, string $resourceId = null)
Creates a resource.
at line 212
protected string[]
getCreateAdditionalHeaders(ResourceInterface $resource)
Override this method in a proxy class if special headers are to be defined upon creation.
at line 222
protected
update(Updatable $resource)
Updates a resource.
at line 233
protected
delete(ResourceInterface|string $resource, int $version = null)
Deletes a resource.
at line 248
protected
archive(ResourceInterface|string $resource, int $version = null)
Archives a resource.
at line 263
protected
unarchive(ResourceInterface|string $resource, int $version = null)
Unarchives a resource.
at line 278
protected
publish(ResourceInterface|string $resource, int $version = null)
Publishes a resource.
at line 293
protected
unpublish(ResourceInterface|string $resource, int $version = null)
Unpublishes a resource.
at line 309
abstract protected string
getResourceUri(array $values)
Returns the URI for the current proxy type.
at line 316
abstract string[]
getEnabledMethods()
An array of enabled methods for the current proxy.