function setPhpCharset($val = 0) { return CharsetHandler::getPhpCharset($val); }
/** * WebServiceAction calls a remote webservice instead of a regular method */ function webServiceAction(&$amfbody) { $method = $GLOBALS['amfphp']['webServiceMethod']; if ($amfbody->getSpecialHandling() == 'ws') { $args =& $amfbody->getValue(); $webServiceURI = $amfbody->classPath; $webServiceMethod = $amfbody->methodName; $phpInternalEncoding = CharsetHandler::getPhpCharset(); $functionName = "webServiceAction_{$method}"; //Include web service actions include_once AMFPHP_BASE . "app/WebServiceActions.php"; $results = $functionName($amfbody, $webServiceURI, $webServiceMethod, $args, $phpInternalEncoding); if ($results != '__amfphp_error') { $amfbody->setResults($results); $amfbody->responseURI = $amfbody->responseIndex . "/onResult"; } } return false; }