class InstanceCache

Methods

__construct()

InstanceCache constructor.

Space|null
getSpace()

Get the space to which this instance Cache belongs.

setSpace(Space $space)

Set the space to which this instance Cache belongs.

bool
hasSpace()

Whether the space has been cached or not

Asset|null
getAsset(string $id)

Get the asset with the specified ID out of the cache

bool
hasAsset(string $id)

No description

addAsset(Asset $asset)

No description

getContentType(string $id)

No description

bool
hasContentType(string $id)

No description

addContentType(ContentType $contentType)

No description

getEntry(string $id)

No description

bool
hasEntry(string $id)

No description

addEntry(DynamicEntry $entry)

No description

Details

at line 36
__construct()

InstanceCache constructor.

Currently empty but exists for forward compatability.

at line 45
Space|null getSpace()

Get the space to which this instance Cache belongs.

Return Value

Space|null

at line 55
setSpace(Space $space)

Set the space to which this instance Cache belongs.

Parameters

Space $space

at line 65
bool hasSpace()

Whether the space has been cached or not

Return Value

bool

at line 77
Asset|null getAsset(string $id)

Get the asset with the specified ID out of the cache

Parameters

string $id

Return Value

Asset|null

at line 91
bool hasAsset(string $id)

Parameters

string $id

Return Value

bool

at line 99
addAsset(Asset $asset)

Parameters

Asset $asset

at line 109
ContentType|null getContentType(string $id)

Parameters

string $id

Return Value

ContentType|null

at line 123
bool hasContentType(string $id)

Parameters

string $id

Return Value

bool

at line 131
addContentType(ContentType $contentType)

Parameters

ContentType $contentType

at line 141
DynamicEntry|null getEntry(string $id)

Parameters

string $id

Return Value

DynamicEntry|null

at line 155
bool hasEntry(string $id)

Parameters

string $id

Return Value

bool

at line 163
addEntry(DynamicEntry $entry)

Parameters

DynamicEntry $entry