Source for file CacheManager.php

Documentation is available at CacheManager.php

  1. <?php
  2. // vim: foldmethod=marker tabstop=4 shiftwidth=4 autoindent
  3. /**
  4.  *  CacheManager.php
  5.  *
  6.  *  @author     Masaki Fujimoto <fujimoto@php.net>
  7.  *  @license    http://www.opensource.org/licenses/bsd-license.php The BSD License
  8.  *  @package    Ethna
  9.  *  @version    $Id: 40b99257c8109528d6479b11424e9ee49a08095a $
  10.  */
  11.  
  12. /**
  13.  *  キャッシュマネージャクラス
  14.  *
  15.  *  @author     Masaki Fujimoto <fujimoto@php.net>
  16.  *  @access     public
  17.  *  @package    Ethna
  18.  */
  19. {
  20.     /**
  21.      *  Cachemaanger プラグインのインスタンスを取得する
  22.      *
  23.      *  @param  string  $type   キャッシュタイプ('localfile', 'memcache'...)
  24.      *  @return object  Ethna_Plugin_CacheMaanger   Cachemanager プラグインのインスタンス
  25.      *  @access public
  26.      */
  27.     public static function getInstance($type)
  28.     {
  29.         $controller Ethna_Controller::getInstance();
  30.         $plugin $controller->getPlugin();
  31.  
  32.         $cache_manager $plugin->getPlugin('Cachemanager'ucfirst($type));
  33.  
  34.         return $cache_manager;
  35.     }
  36. }

Documentation generated on Fri, 11 Nov 2011 03:57:43 +0900 by phpDocumentor 1.4.3