<html>
<head>
	<title>patSysinfo - examples</title>
</head>
<body>
	<b>patSysinfo</b><br /><br />
	errormanager<br /><br />
<pre>
------------8&lt;------------8&lt;------snip-snap------8&lt;------------8&lt;------------
<?php
/**
 * patSysinfo Example:
 **/
 
error_reporting( E_ALL );
 
require_once '../../patError/patErrorManager.php';

patErrorManager::setErrorHandling( E_ERROR, 'verbose' );
patErrorManager::setErrorHandling( E_WARNING, 'verbose' );

require_once '../patSysinfo.php';

$info	=	&patSysinfo::create();

$class	=	get_class( $info );
echo '<b>Class:</b> ' . $class . "\n";

$users	=	$info->getNumberUser();
echo '<b>users:</b> ' . $users . "\n";

$functions	=	get_class_methods( get_class( $info ) );
foreach( $functions as $func )
{
	// only "get*" method are cool :-)
	if( strncmp( 'get', $func, 3 ) <> 0 )
	{
		continue;
	}
	
	echo 'Test: ' . $func . "\n";
	$result	=	$info->$func();
	print_r( $result );
	echo "\n";
}

?>
------------8&lt;------------8&lt;------snip-snap------8&lt;------------8&lt;------------
</pre>
<br />
Download and documentation at <a href="http://www.php-tools.net">www.php-tools.net</a><br />
CVS-Repository at <a href="http://cvs.php-tools.net">cvs.php-tools.net</a><br />
</body>
</html>
