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.
bool
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 49
__construct(string $api, string $spaceId, string $environmentId)
Simple constructor.
at line 63
protected bool
savesResource(string $type)
Determines whether the given resource type must be actually stored.
at line 73
protected string|null
getResourceLocale(ResourceInterface $resource)
at line 88
protected
warmUp(string $key, string $type)
Skeleton method which a can be overridden.
at line 95
has(string $type, string $id, array $options = [])
{@inheritdoc}
at line 110
save(ResourceInterface $resource)
{@inheritdoc}
at line 131
get(string $type, string $id, array $options = [])
{@inheritdoc}
at line 152
generateKey(string $type, string $id, array $options = [])
{@inheritdoc}