Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16699/modules/layout
Modified Files:
class.module_layout.php
Log Message:
several changes
Index: class.module_layout.php
===================================================================
RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout/class.module_layout.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- class.module_layout.php 4 Jun 2004 11:11:58 -0000 1.5
+++ class.module_layout.php 4 Jun 2004 11:32:08 -0000 1.6
@@ -1,9 +1,9 @@
<?php
/**
-* the layout-module is eventbased and creates the layout from a tree of layout-elements.
+* The layout-module is eventbased and creates the layout from a tree of layout-elements.
* These elements contain all the attributes to generate the output.
*
-* License GPL
+* <b>License GPL</b>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -30,6 +30,9 @@
/*
* $Log$
+* Revision 1.6 2004/06/04 11:32:08 mjahn
+* several changes
+*
* Revision 1.5 2004/06/04 11:11:58 mjahn
* several changes
*
@@ -52,22 +55,15 @@
/**
-* standard-class
-*
-* <p>overview of the events <b>used</b> by this module</p>
-* <ul>
-* <li><b>LAYOUT_ADD_ELEMENT</b> adds a layout-element at the end of the element-list</li>
-* <li><b>DISPLAY</b> displays the content of the modules</li>
-* </ul>
+* Layout-class
*
-* <p>overview of the events <b>provided</b> by this module</p>
+* <p>Overview about the events <b>provided</b> by this module</p>
* <ul>
-* <li><b>DISPLAY_GET_CONTENT</b> let the modules create their layout by using the event
-* LAYOUT_ADD_ELEMENT</li>
-* <li><b>DISPLAY_GET_CONTENTBAR</b> let the modules create their layout for the statusbar
-* by using the event LAYOUT_ADD_ELEMENT</li>
-* <li><b>DISPLAY_GET_ERRORS</b> let the modules create their layout for error-messages
-* using the event LAYOUT_ADD_ELEMENT</li>
+* <li><b>DISPLAY_GET_MENU_MAIN</b> let the modules create their main menu</li>
+* <li><b>DISPLAY_GET_MENU_SUB</b> let the modules create their sub menu</li>
+* <li><b>DISPLAY_GET_CONTENT</b> let the modules create their content</li>
+* <li><b>DISPLAY_GET_STATUSBAR</b> let the modules create their statusbar</li>
+* <li><b>DISPLAY_GET_ERROR</b> let the modules create their error-messages</li>
* </ul>
*
* @package admin4phpCMS
@@ -82,22 +78,22 @@
var $_elements = array ();
/**
- * @var array Container für Referenzen auf die Layout-Objekte für den Schnellzugriff
+ * @var array saves references to the layout-elements as quick-links
* @access private
**/
var $_ids = array ();
/**
- * @var array Container für die Template-Daten
- * @example /home/martin/devel/admin4phpCMS/modules/layout/layout.xml mitgelieferte Templatedatei
+ * @var array saves the layout-data
+ * @example /home/martin/devel/admin4phpCMS/modules/layout/layout.xml included example-file
* @access private
**/
var $_layout = array ();
/**
- * Initialisierungsmethode
+ * Initializing
*
- * Registriert die vom Modul benötigten Events und Aktionen
+ * Registers the needed and provided events and actions
**/
function init () {
$this->_registerEvent ('LAYOUT_ADD_ELEMENT', 'doLayoutAddElement');
@@ -119,11 +115,11 @@
*
* <p>$actiondata must provide the following information
* <ul>
- * <li><b>type</b> type of the element in the file {@link /home/martin/devel/admin4phpCMS/modules/layout/layout.xml Example of the layoutfile)</li>
+ * <li><b>type</b> type of the element in the file {@link /home/martin/devel/admin4phpCMS/modules/layout/layout.xml Example of the layoutfile})</li>
* <li><b>id</b> unique id of the element</li>
* </ul>
*
- * @param array $actionhandler Daten des einzufügenden Elementes
+ * @param array $actionhandler data of the element to insert
**/
function addElement (&$actiondata) {
@@ -147,7 +143,7 @@
}
/**
- * generate the output for the framework
+ * Generate output for the framework
*
* @param array $actionhandler
**/
@@ -222,7 +218,7 @@
}
/**
- * displays an array of elements
+ * Displays an array of elements
*
* This function walks recursively through the element-structure and parses the output of any element.
*
@@ -257,7 +253,7 @@
}
/**
- * displays a single element
+ * Displays a single element
*
* $element['_type'] specifies, which template is used for displaying this element
*
@@ -291,7 +287,7 @@
/**
- * Einlesen der Templatedatei
+ * Parse the template-file
*
* @access private
**/
@@ -323,7 +319,7 @@
/**
- * save the templatedata into the xml-file
+ * Save the templatedata into the xml-file
*
* @access private
**/
|