} } } $ret['data'] = "{$objName} ( {$type} )"; $ret['children'] = $children; //$ret['state'] = 'open'; return $ret; } else { return $children; } } else { return "{$objName} => {$obj}"; } } $config = new Amfphp_BackOffice_Config(); $serviceCaller = new Amfphp_BackOffice_IncludeServiceCaller($config->amfphpEntryPointPath); //load service descriptors $services = $serviceCaller->call("AmfphpDiscoveryService", "discover"); //what are we calling? $callMethodName = null; if (isset($_GET['methodName'])) { $callMethodName = $_GET['methodName']; } $callServiceName = null; if (isset($_GET['serviceName'])) { $callServiceName = $_GET['serviceName']; } $callParameters = $_POST; /** * 3 cases: * - POST has some content, this means there is at least one parameter and the call must be made. set to true.
<div class="menu"> Use one of the following generators to generate a client Stub project. <br/> The project includes :<br/><br/> <ul> <li>code to make calling your services easy</li> <li>a starting point for a user interface you can customize</li> </ul> <br/><br/> Code will be generated for the following services: <br/><br/> <?php $generatorManager = new Amfphp_BackOffice_ClientGenerator_GeneratorManager(); $generators = $generatorManager->loadGenerators(array('ClientGenerator/Generators')); $config = new Amfphp_BackOffice_Config(); $serviceCaller = new Amfphp_BackOffice_IncludeServiceCaller($config->amfphpEntryPointPath); $amfphpUrl = $config->resolveAmfphpEntryPointUrl(); //load service descriptors $services = $serviceCaller->call("AmfphpDiscoveryService", "discover"); if ($services instanceof Exception) { throw $services; } if (!is_array($services)) { ?> No services available. Please check : <br/> <ul> <li>That your service classes don't contain syntax errors</li> <li>BackOffice Configuration in BackOffice/Config.php, specifically $amfphpEntryPointUrl</li> </ul> Service Object as returned by AmfphpDiscoveryService: