Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5436/modules/layout
Added Files:
class.layout_phpcms.php
Log Message:
added modules error and layout
--- NEW FILE: class.layout_phpcms.php ---
<?php
class layout_phpcms {
function &addElement () {
$id = '';
$this->ids[$id] =& new layout_phpcms ()
$this->elements[] =& $this->ids[$id];
}
function &getElement ($id) {
if (!isset($this->ids[$id])) {
return false;
}
return $this->ids[$id];
}
function display () {
echo '<p>Meine Ausgabe</p>';
if (!isset ($this->elements) || !is_array ($this->elements)) {
return false;
}
for ($i = 0; $i < count($this->elements); $i++) {
$this->elements[$i]->display();
}
}
}
?>
|