PageController
Extends CacheControllerJoomla! Cache page type object
since |
1.7.0 |
---|---|
package |
Joomla CMS |
Methods
__call
Magic method to proxy CacheController method calls to Cache
__call(string name, array arguments) : mixed
since |
1.7.0 |
---|
Arguments
- name
string
Name of the function- arguments
array
Array of arguments for the function
Response
mixed
__construct
Constructor
__construct(array options) : mixed
since |
1.7.0 |
---|
Arguments
- options
array
Array of options
Response
mixed
_makeId
Generate a page cache id
_makeId() : string
since |
1.7.0 |
---|---|
todo |
Discuss whether this should be coupled to a data hash or a request hash ... perhaps hashed with a serialized request |
Response
string
MD5 Hash
_noChange
There is no change in page data so send an unmodified header and die gracefully
_noChange() : void
since |
1.7.0 |
---|
_setEtag
Set the ETag header in the response
_setEtag(string etag) : void
since |
1.7.0 |
---|
Arguments
- etag
string
The entity tag (etag) to set
addIncludePath
Add a directory where Cache should search for controllers. You may either pass a string or an array of directories.
addIncludePath(array|string path = '') : array
since |
1.7.0 |
---|---|
deprecated |
5.0 Use the cache controller factory instead |
Arguments
- path
array|string
A path to search.
Response
array
An array with directory elements
get
Get the cached page data
get(bool id = false, string group = 'page') : mixed
since |
1.7.0 |
---|
Arguments
- id
bool
The cache data ID- group
string
The cache data group
Response
mixed
Boolean 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()) : \Joomla\CMS\Cache\CacheController
since |
1.7.0 |
---|---|
throws |
|
deprecated |
5.0 Use the cache controller factory instead |
Arguments
- type
string
The cache object type to instantiate; default is output.- options
array
Array of options
Response
\Joomla\CMS\Cache\CacheController
store
Stop the cache buffer and store the cached data
store(mixed data, string id, string group = null, bool wrkarounds = true) : bool
since |
1.7.0 |
---|
Arguments
- data
mixed
The data to store- id
string
The cache data ID- group
string
The cache data group- wrkarounds
bool
True to use workarounds
Response
bool
Properties
_locktest
Cache lock test
since |
1.7.0 |
---|
Type(s)
\stdClass