Handles typical client generation, override various methods for customisation
2. looks for template directives in the code. Usually these directives indicate a block of code that must be replicated. Each directive starts with '/**ACG' and must end with * / note that services in subfolders should get a special treatment, and ideally code would be generated in them with additionnal sub-packages. This is technically too messy, so the '/' is simply replaced by '__'. This will be replaced by a '/' in Amfphp.
Located in /BackOffice/ClientGenerator/ClientGeneratorBase.php (line 26)
| Class | Description |
|---|---|
| AmfphpFlashClientGenerator | generates a Flash project for consumption of amfPHP services |
| AmfphpHtmlClientGenerator | generates a Flash project for consumption of amfPHP services |
file being processed, useful for error messages
generates code for one Service File.
generate as many copies as there are services and treat it as a service block.
override to provide a custom url for a page containing info for this generator.
added to the url of the generated code to go to its test page directly fro, the client generator ui
for example: 'testhtml'/index.html' return false if none, for exqmple if the generated client must be compiled first
override to provide a custom text in the Client Generator UI button for this generator.
finds parameter blocks.
applies processParameterListBlock to each of them then multiplies and adapts the resulting code for each method
multiplies and adapts the code for each parameter, but adds a comma between each
multiplies and adapts the code for each parameter
finds method blocks.
applies processMethodListBlock to each of them then multiplies and adapts the resulting code for each service
load the code, and look if either file is a service block, or il it contains service blocks.
If the file is a service block(detected by having '_SERVICE_' in the file name), call generateServiceFiles If not, look for block delimited by the 'SERVICE' directive and call processServiceListBlock on them Also sets the amfphp entry point url
looks for blocks delimited by the start and stop markers matching the directive, and applies a processing function to each found block.
Documentation generated on Tue, 29 May 2012 23:42:02 +0200 by phpDocumentor 1.4.3