[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/view/src/toolkit/ -> lmbViewTools.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  lmb_require('limb/toolkit/src/lmbAbstractTools.class.php');
  10  
  11  @define('LIMB_TEMPLATES_INCLUDE_PATH', 'template;limb/*/template');

  12  @define('LIMB_WACT_TAGS_INCLUDE_PATH', 'src/template/tags;limb/*/src/template/tags;limb/wact/src/tags');
  13  
  14  /**

  15   * class lmbViewTools.

  16   *

  17   * @package view

  18   * @version $Id$

  19   */
  20  class lmbViewTools extends lmbAbstractTools
  21  {
  22    protected $wact_locator;
  23  
  24    function getWactLocator()
  25    {
  26      if(is_object($this->wact_locator))
  27        return $this->wact_locator;
  28  
  29      lmb_require('limb/view/src/wact/lmbWactTemplateLocator.class.php');
  30  
  31      $locator = $this->toolkit->getFileLocator(LIMB_TEMPLATES_INCLUDE_PATH, 'template');
  32      $this->wact_locator = new lmbWactTemplateLocator($locator, LIMB_VAR_DIR . '/compiled/');
  33  
  34      return $this->wact_locator;
  35    }
  36  
  37    function setWactLocator($wact_locator)
  38    {
  39      $this->wact_locator = $wact_locator;
  40    }
  41  }
  42  ?>


Generated: Sat Sep 6 04:46:52 2008 Cross-referenced by PHPXref 0.7