PHP Classes
elePHPant
Icontem

File: src/Utils/Traits/Cache.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Utils/Traits/Cache.php  >  Download  
File: src/Utils/Traits/Cache.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change: Merge pull request #39 from jaxon-php/v2.2.x

Merge from v2.2.5
Date: 3 months ago
Size: 776 bytes
 

 

Contents

Class file image Download
<?php

/**
 * Cache.php - Trait for cache functions
 *
 * Make functions of the utils classes available to Jaxon classes.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2016 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\Utils\Traits;

use
Jaxon\DI\Container;

trait
Cache
{
   
/**
     * Set a cache directory for the template engine
     *
     * @param string $sCacheDir The cache directory
     *
     * @return void
     */
   
public function setCacheDir($sCacheDir)
    {
        return
Container::getInstance()->getTemplate()->setCacheDir($sCacheDir);
    }
}