class Standard extends BaseResourcePool

Standard class.

This class acts as a registry for current objects managed by the Client, but only stores space, environment, and content types. Everything else is skipped.

Properties

protected string $api
protected string $spaceId
protected string $environmentId

Methods

__construct(string $api, string $spaceId, string $environmentId)

Simple constructor.

savesResource(string $type)

Determines whether the given resource type must be actually stored.

string|null
getResourceLocale(ResourceInterface $resource)

No description

warmUp(string $key, string $type)

Skeleton method which a can be overridden.

has(string $type, string $id, array $options = [])

{@inheritdoc}

save(ResourceInterface $resource)

{@inheritdoc}

get(string $type, string $id, array $options = [])

{@inheritdoc}

generateKey(string $type, string $id, array $options = [])

{@inheritdoc}

Details

at line 45
__construct(string $api, string $spaceId, string $environmentId)

Simple constructor.

Parameters

string $api
string $spaceId
string $environmentId

at line 55
protected savesResource(string $type)

Determines whether the given resource type must be actually stored.

Parameters

string $type

at line 63
protected string|null getResourceLocale(ResourceInterface $resource)

Parameters

ResourceInterface $resource

Return Value

string|null

at line 75
protected warmUp(string $key, string $type)

Skeleton method which a can be overridden.

Parameters

string $key
string $type

at line 82
has(string $type, string $id, array $options = [])

{@inheritdoc}

Parameters

string $type
string $id
array $options

at line 97
save(ResourceInterface $resource)

{@inheritdoc}

Parameters

ResourceInterface $resource

at line 118
get(string $type, string $id, array $options = [])

{@inheritdoc}

Parameters

string $type
string $id
array $options

at line 134
generateKey(string $type, string $id, array $options = [])

{@inheritdoc}

Parameters

string $type
string $id
array $options