[Phpcms-plugins-cvs] admin4phpCMS/include class.framework.php,1.8,1.9 class.module.php,1.6,1.7
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2005-04-07 14:09:53
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15012/include Modified Files: class.framework.php class.module.php Log Message: Commit as backup during development Index: class.module.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/include/class.module.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- class.module.php 24 Jul 2004 08:58:24 -0000 1.6 +++ class.module.php 7 Apr 2005 14:09:09 -0000 1.7 @@ -18,6 +18,15 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * +* <b>Designing new modules</b> +* +* A Module consists of<ul> +* <li>a class file named class.module_MODULENAME.php with a class named +* module_MODULENAME</li> +* <li>a template-directory named "templates" with Smarty-Templates in it</li> +* <li>a directory named "language" with language-files in it</li> +* </ul> +* * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn @@ -27,6 +36,9 @@ **/ /* * $Log$ +* Revision 1.7 2005/04/07 14:09:09 mjahn +* Commit as backup during development +* * Revision 1.6 2004/07/24 08:58:24 mjahn * changed some things * Index: class.framework.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/include/class.framework.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- class.framework.php 7 Dec 2004 06:34:48 -0000 1.8 +++ class.framework.php 7 Apr 2005 14:09:09 -0000 1.9 @@ -34,6 +34,9 @@ /* * $Log$ +* Revision 1.9 2005/04/07 14:09:09 mjahn +* Commit as backup during development +* * Revision 1.8 2004/12/07 06:34:48 mjahn * prepration of first Alpha-Preview * @@ -58,6 +61,14 @@ include_once (dirname(__FILE__).'/class.eventhandler.php'); include_once (dirname(__FILE__).'/class.module.php'); +if (DEBUG) { + /** + * set error-reporting to E_ALL + * only for debugging + */ + error_reporting (E_ALL); +} + /** * @package admin4phpCMS **/ @@ -120,16 +131,11 @@ $moduledir = realpath (dirname (__FILE__).'/../modules/'); foreach ($config as $id=>$module) { - // this is no module - if ($module->name != 'module') { - continue; - } - // calculate the path to the module file - $includefile = $moduledir.'/'.$module->attributes['id'].'/'.$module->attributes['include']; + $includefile = $moduledir.'/'.$id.'/'.$module ['file']; // load module - $actiondata = array ('filename'=>$includefile, 'class'=>$module->attributes['class']); + $actiondata = array ('filename'=>$includefile, 'class'=>$module ['class']); $this->eventhandler->event ('LOAD_MODULE', $actiondata); } } |