Source for file OCSP_DT_TREENODE.phpclass

Documentation is available at OCSP_DT_TREENODE.phpclass

  1. <?php
  2. /**
  3.   * openCSP class file OCSP_DT_TREENODE.phpclass
  4.   *
  5.   * @project Open CSP-Management
  6.   * @package datatypes
  7.   *
  8.   * @author Peter Krebs <pitlinz@users.sourceforge.net>
  9.   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  10.   *
  11.   * @since pk-01.08.2008
  12.   * @version $Id: OCSP_DT_TREENODE.phpclass,v 1.1 2008/08/02 01:03:29 pitlinz Exp $
  13.   */
  14.  
  15.     // ---------------------------------------------------------
  16.     // requirements
  17.     // ---------------------------------------------------------
  18.  
  19.     pcf_require_class('OCSP_DT_COLLECTION',dirname(__FILE__"/");
  20.  
  21. /**
  22.   * openCSP class OCSP_DT_TREENODE
  23.   *
  24.   * @project Open CSP-Management
  25.   * @package datatypes
  26.   *
  27.   * @author Peter Krebs <pitlinz@users.sourceforge.net>
  28.   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  29.   *
  30.   * @since pk-01.08.2008
  31.   * @version $Id: OCSP_DT_TREENODE.phpclass,v 1.1 2008/08/02 01:03:29 pitlinz Exp $
  32.   */
  33. {
  34.     // ---------------------------------------------------------------------------
  35.     // constants
  36.     // ---------------------------------------------------------------------------
  37.     
  38.     /**
  39.      * @constant string CLASS_SRC_FILE
  40.      */
  41.     const CLASS_SRC_FILE = __FILE__;
  42.  
  43.     // ---------------------------------------------------------------------------
  44.     // class (static)
  45.     // ---------------------------------------------------------------------------
  46.     
  47.     /*** class vars ------------------------------------------------------ */
  48.     
  49.     /*** class methods --------------------------------------------------- */
  50.     
  51.     // ---------------------------------------------------------------------------
  52.     // object vars
  53.     // ---------------------------------------------------------------------------
  54.     
  55.     /*** compostion --------------------------------------------------- */
  56.     
  57.     /*** attributes  -------------------------------------------------- */
  58.     
  59.     /**
  60.      * the parent node or Null if root
  61.      *
  62.      * @var OCSP_DT_TREENODE 
  63.      */
  64.     protected $myParent = Null;
  65.     
  66.     // ---------------------------------------------------------------------------
  67.     // factory / construct
  68.     // ---------------------------------------------------------------------------
  69.     
  70.     // ---------------------------------------------------------------------------
  71.     // getter / setter
  72.     // ---------------------------------------------------------------------------    
  73.  
  74.     /**
  75.      * returns the parent node
  76.      *
  77.      * @return OCSP_DT_TREENODE 
  78.      */
  79.     public function &getParent()
  80.     {
  81.         return $this->myParent;
  82.     }
  83.     
  84.     public function setParent($aParent)
  85.     {
  86.         $this->myParent = $aParent;
  87.     }
  88.     
  89. }
  90.  
  91. ?>

Documentation generated on Thu, 08 Jan 2009 17:45:37 +0100 by phpDocumentor 1.4.0a2