[Phpcms-plugins-cvs] admin4phpCMS/include class.framework.php,1.2,1.3
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-05-28 12:07:55
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5436/include Modified Files: class.framework.php Log Message: added modules error and layout Index: class.framework.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/include/class.framework.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- class.framework.php 26 May 2004 11:25:59 -0000 1.2 +++ class.framework.php 28 May 2004 12:07:43 -0000 1.3 @@ -21,6 +21,34 @@ $this->eventhandler->event ('LOAD_MODULE', $actiondata); $actiondata = array ('configfile'=>$configfile); $this->eventhandler->event ('CONFIG_READ', $actiondata); + + $actiondata = array ('configfile'=>$configfile); + $this->eventhandler->event ('CONFIG_GET', $actiondata); + $this->config =& $actiondata['config']; + + $moduledir = realpath (dirname (__FILE__).'/../modules/'); + + foreach ($this->config->children as $module) { + if ($module->name != 'module') { + continue; + } + + $includefile = $moduledir.'/'.$module->attributes['id'].'/'.$module->attributes['include']; + $actiondata = array ('filename'=>$includefile, 'class'=>$module->attributes['class']); + $this->eventhandler->event ('LOAD_MODULE', $actiondata); + + } + + $actiondata = array ('get'=>$_GET, 'post'=>$_POST, 'request'=>$_REQUEST); + $this->eventhandler->event ('PARSE_PARAM', $actiondata); + + $actiondata = array (); + $this->eventhandler->event ('PARSE_MENU', $actiondata); + + $actiondata = array (); + $this->eventhandler->event ('DISPLAY', $actiondata); + + } } |