className . '.' . $method, $args); //return call_user_func_array (array(&$object, $method), $args); } /** * Builds a class using a class name * If there is a failure, catch the error and return to caller */ function buildClass(&$bodyObj, $className) { global $amfphp; if(isset($amfphp['classInstances'][$className])) { return $amfphp['classInstances'][$className]; } else { $construct = new $className($className); $amfphp['classInstances'][$className] = & $construct; return $construct; } } /** * Include a class * If there is an error, catch and return to caller */ function includeClass(&$bodyObj, $location) { $included = include_once($location); return $included !== FALSE; } } ?>