[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/cms/src/model/ -> lmbCmsRootNode.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/cms/src/model/lmbCmsNode.class.php');
  10  
  11  /**

  12   * class lmbCmsRootNode.

  13   *

  14   * @package cms

  15   * @version $Id$

  16   */
  17  class lmbCmsRootNode extends lmbCmsNode
  18  {
  19    protected function _createValidator()
  20    {
  21      $validator = new lmbValidator();
  22      return $validator;
  23    }
  24  
  25    protected function _insertDbRecord($values)
  26    {
  27      $root_id = $this->_tree->initTree();
  28      $this->_tree->updateNode($root_id, $values);
  29      return $root_id;
  30    }
  31  
  32    function getUrlPath()
  33    {
  34      return '/';
  35    }
  36  
  37    function getParents()
  38    {
  39      return new lmbCollection();
  40    }
  41  }
  42  
  43  ?>


Generated: Fri Dec 5 04:05:07 2008 Cross-referenced by PHPXref 0.7