JCacheControllerOutput

Extends \JCacheController

Joomla Cache output type object

since

11.1

package

Joomla.Platform

Methods

__call

Magic method to proxy JCacheController method calls to JCache

__call(string $name, array $arguments) : mixed
inherited
since

11.1

Arguments

$name

stringName of the function

$arguments

arrayArray of arguments for the function

Response

mixed

__construct

Constructor

__construct(array $options) 
inherited
since

11.1

Arguments

$options

arrayArray of options

addIncludePath

Add a directory where JCache should search for controllers. You may either pass a string or an array of directories.

addIncludePath(array|string $path = '') : array
inherited static
since

11.1

Arguments

$path

array|stringA path to search.

Response

arrayAn array with directory elements

end

Stop the cache buffer and store the cached data

end() : boolean
deprecated
since

11.1

deprecated

4.0

Response

booleanTrue if the cache data was stored

get

Get stored cached data by ID and group

get(string $id, string $group = null) : mixed
inherited deprecated
since

11.1

deprecated

4.0 Implement own method in subclass

Arguments

$id

stringThe cache data ID

$group

stringThe cache data group

Response

mixedBoolean false on no result, cached object otherwise

getInstance

Returns a reference to a cache adapter object, always creating it

getInstance(string $type = 'output', array $options = array()) : \JCacheController
inherited static
since

11.1

throws

\RuntimeException

Arguments

$type

stringThe cache object type to instantiate; default is output.

$options

arrayArray of options

Response

\JCacheController

start

Start the cache

start(string $id, string $group = null) : boolean
deprecated
since

11.1

deprecated

4.0

Arguments

$id

stringThe cache data ID

$group

stringThe cache data group

Response

boolean

store

Store data to cache by ID and group

store(mixed $data, string $id, string $group = null, boolean $wrkarounds = true) : boolean
inherited deprecated
since

11.1

deprecated

4.0 Implement own method in subclass

Arguments

$data

mixedThe data to store

$id

stringThe cache data ID

$group

stringThe cache data group

$wrkarounds

booleanTrue to use wrkarounds

Response

booleanTrue if cache stored

Properties

_id

Cache data ID

Type(s)

string

_group

Cache data group

Type(s)

string

_locktest

Object to test locked state

deprecated

Type(s)

\stdClass

cache

JCache object

inherited

Type(s)

\JCache

options

Array of options

inherited

Type(s)

array