示例#1
0
 public function build(\Innomatic\Wui\Dispatch\WuiDispatcher $rwuiDisp)
 {
     $this->mrWuiDisp = $rwuiDisp;
     if ($this->mDefinition == null) {
         return false;
     }
     $def = XMLParser::getXmlTree($this->mDefinition);
     $def = array_shift($def);
     $root_element =& $this->getElementStructure($def);
     $this->mLayout = ($this->mComments ? '<!-- begin ' . $this->mName . ' xml -->' : '') . ($root_element->build($this->mrWuiDisp) ? $root_element->render() : '') . ($this->mComments ? '<!-- end ' . $this->mName . " xml -->\n" : '');
     $this->mBuilt = true;
     return true;
 }
 public function __construct($basedir = '')
 {
     $container = \Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer');
     $this->mLog = $container->getLogger();
     $this->eltypes = new ApplicationComponentFactory($container->getDataAccess());
     $this->eltypes->fillTypes();
     parent::__construct();
     $this->basedir = $basedir;
     //$this->modstructure['generalpreinstall'] = '';
     //$this->modstructure['generalpreuninstall'] = '';
     //$this->modstructure['generalpostinstall'] = '';
     //$this->modstructure['generalpostuninstall'] = '';
     //$this->modstructure['domainpreinstall'] = '';
     //$this->modstructure['domainpreuninstall'] = '';
     //$this->modstructure['domainpostinstall'] = '';
     //$this->modstructure['domainpostuninstall'] = '';
     //$this->modstructure['generalpreupdate'] = '';
     //$this->modstructure['generalpostupdate'] = '';
     //$this->modstructure['domainpreupdate'] = '';
     //$this->modstructure['domainpostupdate'] = '';
 }
 public function __construct(\Innomatic\Dataaccess\DataAccess $db, $act)
 {
     parent::__construct();
     $this->mAction = $act;
     $this->db = $db;
 }