<?php
require_once('lib/plugins-manager.inc.php');

$p = new Plugin('test.class.php');
$test = $p->class_factory('test', 1, 2);
$test->foo();

$pm = new PluginsManager('.');
foreach ($pm as $p) 
{
    $p->class_factory('test', 1, 2)->foo();
}
$p = $pm['test.class.php']->class_factory('test', 1, 2)->foo();

?>
