[Phpcms-plugins-cvs] admin4phpCMS/modules/statistik class.module_statistik.php,1.1,1.2 layout.xml,1.
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-08-25 21:17:26
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/statistik In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2565/modules/statistik Modified Files: class.module_statistik.php layout.xml Log Message: step 1 is taken Index: layout.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/statistik/layout.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- layout.xml 5 Aug 2004 16:38:42 -0000 1.1 +++ layout.xml 25 Aug 2004 21:16:44 -0000 1.2 @@ -1,5 +1,4 @@ <?xml version="1.0" encoding="iso-8859-15" standalone="yes"?> -<!DOCTYPE layout SYSTEM "layout.dtd"> <layout name="standard"> <layout:insert name="cachelist"> <![CDATA[ Index: class.module_statistik.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/statistik/class.module_statistik.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- class.module_statistik.php 5 Aug 2004 16:38:42 -0000 1.1 +++ class.module_statistik.php 25 Aug 2004 21:16:44 -0000 1.2 @@ -1,6 +1,6 @@ <?php /** -* Managment of the phpCMS-related administration part +* statistic-module * * <b>License</b> * @@ -23,20 +23,23 @@ * @copyright Copyright (c) 2004, Martin Jahn * @version $Id$ * @package admin4phpCMS -* @subpackage module_statistik +* @subpackage module_statistic **/ /* * $Log$ -* Revision 1.1 2004/08/05 16:38:42 mjahn -* tweaked phpcms::cache-module output +* Revision 1.2 2004/08/25 21:16:44 mjahn +* step 1 is taken * */ + +include_once (PATH_TO_PEAR.'Cache.php'); + /** * Class for statistic interface * * @package admin4phpCMS -* @subpackage module_statistik +* @subpackage module_statistic * @todo Get the class work completly **/ class module_statistik extends module { @@ -60,15 +63,17 @@ * @param array $actiondata $actiondata contains the URI-param-arrays **/ function parseParam (&$actiondata) { - $this->display = (isset ($actiondata['request']['moduleid']) && $actiondata['request']['moduleid'] == 'statistik'); +// print_r ($actiondata); + $this->display = (isset ($actiondata ['request'] ['moduleid']) && $actiondata ['request'] ['moduleid'] == 'statistik'); $this->action = ''; - if (isset ($actiondata['request']['action'])) { - $this->action = $actiondata['request']['action']; + if (isset ($actiondata ['request'] ['action'])) { + $this->action = $actiondata ['request'] ['action']; } - $this->_callEvent ('USER_GET_STATUS', $actiondata); - $this->_USER = $actiondata; + $actiondata1 = array (); + $this->_callEvent ('USER_GET_STATUS', $actiondata1); + $this->_USER = $actiondata1; return true; @@ -86,11 +91,11 @@ } $root = $actiondata['_root']; - $actiondata = array ('_type'=>'menu_main_entry', '_root'=>$root, 'name'=>'Statistik', 'module'=>'statistik', '_id'=>'statistikmenu', '_root'=>'mainmenu'); + $actiondata1 = array ('_type'=>'menu_main_entry', '_root'=>$root, 'name'=>'Statistik', 'module'=>'statistik', '_id'=>'statistikmenu', '_root'=>'mainmenu'); if ($this->display) { - $actiondata ['extra'] = 'class="active"'; + $actiondata1 ['extra'] = 'class="active"'; } - $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); return true; } // function getMenuMain () @@ -107,18 +112,27 @@ if (!$this->display) { return true; - } + } $root = $actiondata['_root']; - $actiondata = array ('_type'=>'menu_sub_entry', '_root'=>$root, 'name'=>'Allgemein', 'module'=>'statistik', '_id'=>'statistik_common', 'action'=>'common'); - if ($this->action == 'cache') { - $actiondata['extra'] = 'id="current"'; + $actiondata1 = array ('_type'=>'menu_sub_entry', '_root'=>$root, 'name'=>'Allgemein', 'module'=>'statistik', '_id'=>'statistik_common', 'action'=>'common'); + if ($this->action == 'common') { + $actiondata1 ['extra'] = 'id="current"'; } - $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); } // function getMenuSub () + function parseStatFile () { + // open statfile + + // walk through statfile + + // create stat-arrays + + // + } } ?> \ No newline at end of file |