1) { $msg = $arg; } foreach($tutos[handler][$type] as $i => $f) { if (file_exists($tutos['base'] ."/". $f)) { include_once $tutos['base'] ."/". $f; if (class_exists($i)) { $x = new $i($obj->dbconn); if ( ! is_subclass_of($x,'tutos_handler') ) { Fatal_Error("Wrong handler class: ". $i); } $msg .= $x->handle($obj,$arg,$cnt); } else { $msg .= $i ." not correctly configured"; } } } return $msg; } /** * INTERFACE !! * This class is the base for all extension handlers * @package BASE * @module tutos_handler */ class tutos_handler { /** * run the handler */ function handle(&$obj,$cnt) { } } ?>