示例#1
0
 function execute($function, $args = '', $path = 'extensions')
 {
     $function = basename($function);
     $path = basename($path);
     self::$model = $function;
     if (file_exists(iswaf_root . $path . '/' . $function . '.php')) {
         include_once iswaf_root . $path . '/' . $function . '.php';
         $classname = 'plus_' . $function;
         $class = new $classname();
         self::$models[] = $function;
         if (!is_array($args)) {
             $args = array($args);
         }
         $a = call_user_func_array(array($class, $function), $args);
         self::debuginfo($function);
         return $a;
     }
 }