101 lines
2.3 KiB
PHP
101 lines
2.3 KiB
PHP
<?php
|
|
|
|
/** Customer Root
|
|
* root for all customer elements
|
|
*
|
|
* @version 2.0.0
|
|
* @since 2008-04-07
|
|
*
|
|
*/
|
|
class CustomerRoot extends CmsObject{
|
|
|
|
|
|
/** C'tor
|
|
*/
|
|
//-----------------------------------------------
|
|
function CustomerRoot($id, $parent){
|
|
//-----------------------------------------------
|
|
parent::CmsObject($id, $parent);
|
|
$this->name = "Besucherdaten";
|
|
}
|
|
|
|
|
|
/** @see CmsObject::load()
|
|
*/
|
|
//-----------------------------------------------
|
|
function load($path=array()){
|
|
//-----------------------------------------------
|
|
$this->childObjects = array();
|
|
$id = 50;
|
|
|
|
$t = FlexiconFactory::instanceByClass("CustomerList", $this);
|
|
$t->setId(++$id);
|
|
$this->childObjects[] = $t;
|
|
|
|
$t = FlexiconFactory::instanceByClass("CustomerGroupList", $this);
|
|
$t->setId(++$id);
|
|
$this->childObjects[] = $t;
|
|
|
|
$t = FlexiconFactory::instanceByClass("CustomerGroupContainer", $this);
|
|
$t->setId(++$id);
|
|
$this->childObjects[] = $t;
|
|
|
|
$t = FlexiconFactory::instanceByClass("CustomerForm", $this);
|
|
$t->setId(++$id);
|
|
$this->childObjects[] = $t;
|
|
|
|
$t = FlexiconFactory::instanceByClass("CustomerImporter", $this);
|
|
$t->setId(++$id);
|
|
$this->childObjects[] = $t;
|
|
|
|
$t = FlexiconFactory::instanceByClass("CustomerExporter", $this);
|
|
$t->setId(++$id);
|
|
$this->childObjects[] = $t;
|
|
|
|
array_shift($path);
|
|
foreach($this->childObjects as $i=>$child){
|
|
$this->childObjects[$i]->load($path);
|
|
}
|
|
}
|
|
|
|
|
|
/** @see CmsObject::printContent()
|
|
*/
|
|
//-----------------------------------------------
|
|
function printContent(){
|
|
//-----------------------------------------------
|
|
$out = "";
|
|
foreach($this->childObjects as $i=>$child){
|
|
if($this->childObjects[$i]->isListable()){
|
|
$out .= $this->childObjects[$i]->printChildContent();
|
|
}
|
|
}
|
|
return $out;
|
|
}
|
|
|
|
|
|
/** @see CmsObject::getCssClass()
|
|
*/
|
|
|
|
//-----------------------------------------------
|
|
function getCssClass(){
|
|
//-----------------------------------------------
|
|
return "itemCustomers";
|
|
}
|
|
|
|
|
|
// === ADDITIONAL METHODS ================================================================= //
|
|
|
|
|
|
/** sets the id
|
|
* @param id id
|
|
*/
|
|
//-----------------------------------------------
|
|
function setId($id){
|
|
//-----------------------------------------------
|
|
$this->id = $id;
|
|
}
|
|
|
|
};
|
|
|
|
?>
|