File modules/util/TreeElement.class.php

Last commit: Sat Feb 22 23:58:02 2020 +0100	Jan Dankert	Refactoring: Namespacing for module 'util'.
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 ?>
Download modules/util/TreeElement.class.php
History Sat, 22 Feb 2020 23:58:02 +0100 Jan Dankert Refactoring: Namespacing for module 'util'. Sun, 23 Sep 2018 22:26:00 +0200 Jan Dankert Die IndexAction soll beim Start des UI auch die Action und Id ermitteln. Damit die Id gesetzt werden kann, muss die Id über den Dispatcher in die Action gebracht werden. Dazu muss erst der Request gesetzt werden, bevor die weitere Verarbeitung geschieht, daher geschieht die fachliche Initialisierung der Actions jetzt (wieder) über eine init()-Methode, die vom Dispatcher aufgerufen wird. Wed, 19 Sep 2018 23:56:56 +0200 Jan Dankert Der Navigationsbaum soll initial durch den 1. HTTP-Request schon bereit gestellt werden. Per Javascript erfolgt nur noch das Auf- und Zublättern. Sat, 16 Dec 2017 23:21:31 +0100 Jan Dankert Eigenes Modul für alle Util-Klassen.