Horde_Template::__construct PHP Method

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array The following configuration options:
'basepath' - (string) The directory where templates are read from.
'cacheob' - (Horde_Cache) A caching object used to cache the output.
'logger' - (Horde_Log_Logger) A logger object.
    public function __construct($params = array())
    {
        if (isset($params['basepath'])) {
            $this->_basepath = $params['basepath'];
        }
        if (isset($params['cacheob'])) {
            $this->_cache = $params['cacheob'];
        }
        if (isset($params['logger'])) {
            $this->_logger = $params['logger'];
        }
    }