Standard
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.
at line 55
protected
savesResource(string $type)
Determines whether the given resource type must be actually stored.
at line 63
protected string|null
getResourceLocale(ResourceInterface $resource)
at line 75
protected
warmUp(string $key, string $type)
Skeleton method which a can be overridden.
at line 82
has(string $type, string $id, array $options = [])
{@inheritdoc}
at line 97
save(ResourceInterface $resource)
{@inheritdoc}
at line 118
get(string $type, string $id, array $options = [])
{@inheritdoc}
at line 134
generateKey(string $type, string $id, array $options = [])
{@inheritdoc}