These include :<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(); $amfphpUrl = $config->resolveAmfphpEntryPointUrl(); $serviceCaller = new Amfphp_BackOffice_ServiceCaller($amfphpUrl); //load service descriptors $services = $serviceCaller->makeAmfphpJsonServiceCall("AmfphpDiscoveryService", "discover"); //remove discovery service from list unset($services->AmfphpDiscoveryService); //list services echo '<ul>'; foreach ($services as $service) { echo "<li>{$service->name}</li>"; } echo '</ul>'; //links for each generator echo "\n<table>"; foreach ($generators as $generator) { echo "\n <tr>"; $generatorName = $generator->getUiCallText(); $generatorClass = get_class($generator); $infoUrl = $generator->getInfoUrl();
* LICENSE * * This source file is subject to the license that is bundled * with this package in the file license.txt. * @package Amfphp_BackOffice */ /** * includes */ require_once dirname(__FILE__) . '/ClassLoader.php'; $addToTitle = ' - Service Browser'; require_once dirname(__FILE__) . '/Top.php'; $config = new Amfphp_BackOffice_Config(); $serviceCaller = new Amfphp_BackOffice_ServiceCaller($config->resolveAmfphpEntryPointUrl()); //load service descriptors $services = $serviceCaller->makeAmfphpJsonServiceCall("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. * - GET callWithoutParams is set, this means it's a call to a method without parameters. set to true. * - lastly, it can be just a call to select a service method, but without a call. set to false.