From af1cf37b5b98ae7db010f35acc44b1bc1f159a84 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 7 Feb 2008 19:05:44 +0000 Subject: [PATCH] added meta HTML documentation --- lam/lib/modules.inc | 134 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 19fc651d..95667d55 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -527,6 +527,140 @@ function getRequiredExtensions() { /** * Takes a list of meta-HTML elements and prints the equivalent HTML output. +* +* The modules are not allowed to display HTML code directly but return +* meta HTML code. This allows to have a common design for all module pages.
+*
+* Meta HTML code is always returned as a three dimensional array[a][b][c] +* where a is the row number, b is the column number and c is +* is a data element.
+*
+* Format of data elements:
+*
+* A data element is an array which contains the data to display.
+* All data elements must contail a value "kind" which +* defines what kind of element should be displayed.
+*
+* These are the possibilies for kind and what other options have to be added to the array:
+*
+* +*
+* Beneath those values a "td" value may be added. This has to be an array with one or more +* of these options:
+*
+* +*
+* Input buttons which should load a different subpage of a module must have a special name attribute:
+*
+* name => 'form_subpage_' . . '_' . . '_' .