Source for file Ethna_CacheManager.php

Documentation is available at Ethna_CacheManager.php

  1. <?php
  2. // vim: foldmethod=marker tabstop=4 shiftwidth=4 autoindent
  3. /**
  4.  *  Ethna_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$
  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.     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. }
  37. ?>

Documentation generated on Fri, 11 Nov 2011 03:59:22 +0900 by phpDocumentor 1.4.3