Update of /cvsroot/tslogparser/tslogparser/admin/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5647/admin/modules
Modified Files:
opts.mod.php
Added Files:
ltp.mod.php.example
Removed Files:
ltp.mod.php
Log Message:
- Added some session stuff (new file: session.inc.php)
- Renamed ltp.mod.php into ltp.mod.php.example
- Some additions into the modules design (module_info method)
- Administrativa index started (not functionnal yet).
Index: opts.mod.php
===================================================================
RCS file: /cvsroot/tslogparser/tslogparser/admin/modules/opts.mod.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- opts.mod.php 3 Jan 2005 16:27:49 -0000 1.3
+++ opts.mod.php 4 Jan 2005 17:46:14 -0000 1.4
@@ -100,16 +100,23 @@
All information related to the module (version, known bugs, ...) are suitable
for this function (think of it as the only documentation for the module).
*/
- function module_info()
+ function module_info($what="")
{
- echo "<p><b>Open POSIX Test Suite</b> parser module for <b>TSLogParser</b></p>\n";
- echo "<p>Release: <b>0.1</b> 2004/12/31</p>\n";
- echo "<p>Limitations and known problems: \n";
- echo "<ul>\n<li>In case an assertion.xml file is malformed, the XML parser will fail\n";
- echo " For this reason, you need a recent Open POSIX Test Suite release (1.5.0 is OK)\n";
- echo "</li></ul></p>\n";
- echo "<p>See the <a href='http://posixtest.sourceforge.net/'>test suite homepage</a> for more information.</p>\n";
- return;
+ $title = "<b>Open POSIX Test Suite</b> parser module for <b>TSLogParser</b>";
+
+ $text = "<p>$title</p>\n";
+ $text.= "<p>Release: <b>0.1</b> 2004/12/31</p>\n";
+ $text.= "<p>Limitations and known problems: \n";
+ $text.= "<ul>\n<li>In case an assertion.xml file is malformed, the XML parser will fail\n";
+ $text.= " For this reason, you need a recent Open POSIX Test Suite release (1.5.0 is OK)\n";
+ $text.= "</li></ul></p>\n";
+ $text.= "<p>See the <a href='http://posixtest.sourceforge.net/'>test suite homepage</a> for more information.</p>\n";
+
+ if ($what == "title")
+ return $title;
+
+ /* default to all */
+ return $text;
}
/*
--- ltp.mod.php DELETED ---
--- NEW FILE: ltp.mod.php.example ---
<?php
/*
* Copyright (c) 2005, Bull S.A.. All rights reserved.
* Created by: Sebastien Decugis
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write the Free Software Foundation, Inc., 59
* Temple Place - Suite 330, Boston MA 02111-1307, USA.
*/
/* This module is an exemple model for a new module.
Adapt it for your own needs and please submit your new modules
on the project mailing list. */
class ltp {
function module_info($what="")
{
$title = "<b>Linux Test Project</b> parser module for <b>TSLogParser</b>";
$text = "<p>$title</p>\n";
$text.= "<p>Release: <b>0.0</b> 2004/12/31</p>\n";
$text.= "<p>Limitations and known problems: \n";
$text.= "<ul>\n<li>This module is just for test purpose; no function is working yet\n";
$text.= "</li></ul></p>\n";
$text.= "<p>See the <a href='http://ltp.sourceforge.net/'>test suite homepage</a> for more information.</p>\n";
if ($what == "title")
return $title;
/* default to all */
return $text;
}
function TS_parse(&$parent, $TS_name, $TS_description, $path)
{
return $false;
}
function TS_delete(&$parent, $TS_id)
{
return $false;
}
function RUN_parse(&$parent, $RUN_name, $RUN_description, $TS_id, $CONTENT)
{
return $false;
}
function RUN_delete(&$parent, $RUN_id)
{
return $false;
}
}
/* Return the class name so it is added to the catalog */
return("ltp");
?>
|