Table of Contents

_construct

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Cache Class JCache Method __construct Reference __construct() Never Work in Progress

This is the class constructor. The constructor sets up the default group to use for function caching and builds the cache directory.

Syntax

void __construct ( $options )

$options array is an associative array of options.

The following are the available options:

Further information on the options array can be obtained from the Cache_Lite website.

Examples

Since this is an abstract class, the constructor is not called directly. The class is instantiated by calling the JFactory::getCache method. This method will instantiate the appropriate child class. This constructor is called by the child class using:

Example

parent::_construct( $options );