2775 |
rexy |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Basic Plugin Functions
|
|
|
4 |
*
|
|
|
5 |
* PHP version 5
|
|
|
6 |
*
|
|
|
7 |
* @category PHP
|
|
|
8 |
* @package PSI_Interfaces
|
|
|
9 |
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
|
|
10 |
* @copyright 2009 phpSysInfo
|
|
|
11 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
|
|
12 |
* @version SVN: $Id: class.PSI_Interface_Plugin.inc.php 273 2009-06-24 11:40:09Z bigmichi1 $
|
|
|
13 |
* @link http://phpsysinfo.sourceforge.net
|
|
|
14 |
*/
|
|
|
15 |
/**
|
|
|
16 |
* define which methods a plugin class for phpsysinfo must implement
|
|
|
17 |
* to be recognized and fully work without errors, these are the methods which
|
|
|
18 |
* are called from outside to include the information in the main application
|
|
|
19 |
*
|
|
|
20 |
* @category PHP
|
|
|
21 |
* @package PSI_Interfaces
|
|
|
22 |
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
|
|
|
23 |
* @copyright 2009 phpSysInfo
|
|
|
24 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
|
|
25 |
* @version Release: 3.0
|
|
|
26 |
* @link http://phpsysinfo.sourceforge.net
|
|
|
27 |
*/
|
|
|
28 |
interface PSI_Interface_Plugin
|
|
|
29 |
{
|
|
|
30 |
/**
|
|
|
31 |
* doing all tasks before the xml can be build
|
|
|
32 |
*
|
|
|
33 |
* @return void
|
|
|
34 |
*/
|
|
|
35 |
public function execute();
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* build the xml
|
|
|
39 |
*
|
|
|
40 |
* @return SimpleXMLElement entire XML content for the plugin which than can be appended to the main XML
|
|
|
41 |
*/
|
|
|
42 |
public function xml();
|
|
|
43 |
}
|