openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

TreeElement.class.php (1596B)


      1 <?php
      2 
      3 // OpenRat Content Management System
      4 // Copyright (C) 2002-2012 Jan Dankert, cms@jandankert.de
      5 //
      6 // This program is free software; you can redistribute it and/or
      7 // modify it under the terms of the GNU General Public License
      8 // as published by the Free Software Foundation; either version 2
      9 // of the License, or (at your option) any later version.
     10 //
     11 // This program is distributed in the hope that it will be useful,
     12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14 // GNU General Public License for more details.
     15 //
     16 // You should have received a copy of the GNU General Public License
     17 // along with this program; if not, write to the Free Software
     18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     19 
     20 namespace util;
     21 /**
     22  * Darstellen eines Elementes in einer Baumstruktur
     23  * @author $Author$
     24  * @version $Revision$
     25  * @package openrat.services
     26  */
     27 class TreeElement
     28 {
     29 	/**
     30 	 * @type Integer
     31 	 */
     32 	var $id;
     33 
     34 	var $extraId = array();
     35 
     36 	var $internalId = 0;
     37 
     38 	/**
     39 	 * Text des Baumelementes
     40 	 * @type String
     41 	 */
     42 	var $text = "";
     43 
     44 	/**
     45 	 * Beschreibung
     46 	 * @type String
     47 	 */
     48 	var $description = "";
     49 	var $icon = "";
     50 	var $action = "";
     51 
     52 	/**
     53 	 * Unterelemente
     54 	 * Ein Array von Ids
     55 	 * @type Array
     56 	 */
     57 	var $subElementIds = array();
     58 
     59 	/**
     60 	 * Typ des Elementes
     61 	 * In der Tree-Klasse muss es eine Methode mit diesem Namen geben, die das
     62 	 * Element laedt.
     63 	 * @type String
     64 	 */
     65 	var $type = "";
     66 
     67 	public $children = array();
     68 
     69 
     70 	// Konstruktor
     71 	function __construct()
     72 	{
     73 	}
     74 }
     75 
     76 ?>