generates a Flash project for consumption of amfPHP services
copies the template. 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.
author | Ariel Sommeria-klein |
---|---|
package | Amfphp_Backoffice_Generators |
__construct()
generate(array $services, string $amfphpEntryPointUrl, String $targetFolder) : null
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::generate() |
---|
array
. note: here '/' in each service name is replaced by '__', to avoid dealing with packages
string
String
absolute url to folder where to put the generated code
null
getInfoUrl() : string
string
getTestUrlSuffix()
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::getTestUrlSuffix() |
---|
getUiCallText() : string
string
generateOneServiceFileCode(String $code) : String
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::generateOneServiceFileCode() |
---|
String
String
generateServiceFiles(String $code, \SplFileInfo $file)
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::generateServiceFiles() |
---|
String
\SplFileInfo
processMethodListBlock(\type $code)
applies processParameterListBlock to each of them then multiplies and adapts the resulting code for each method
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::processMethodListBlock() |
---|
\type
processParameterCommaListBlock(\type $code)
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::processParameterCommaListBlock() |
---|
\type
processParameterListBlock(\type $code)
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::processParameterListBlock() |
---|
\type
processServiceListBlock(\type $code)
applies processMethodListBlock to each of them then multiplies and adapts the resulting code for each service
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::processServiceListBlock() |
---|
\type
processSourceFile(\SplFileInfo $file)
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
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::processSourceFile() |
---|
\SplFileInfo
searchForBlocksAndApplyProcessing(String $code, String $directive, String $functionName) : \mixed.
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::searchForBlocksAndApplyProcessing() |
---|
String
the template code. Is modified continually
String
for example 'SERVICE'
String
functionName
\mixed.
if there was a change, returns the modified code, else returns false$targetFolder : string
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$targetFolder |
---|
$amfphpEntryPointUrl : string
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$amfphpEntryPointUrl |
---|
$codeFileExtensions : array
for example array('as')
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$codeFileExtensions |
---|
$fileBeingProcessed : \SplFileInfo
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$fileBeingProcessed |
---|
$methodBeingProcessed : \stdClass
untyped
see | \AmfphpDiscovery_MethodDescriptor |
---|---|
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$methodBeingProcessed |
$serviceBeingProcessed : \stdClass
untyped
see | \AmfphpDiscovery_ServiceDescriptor |
---|---|
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$serviceBeingProcessed |
$services : array
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$services |
---|
$templateFolderUrl : string
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::$$templateFolderUrl |
---|
METHOD
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::METHOD |
---|
PARAMETER
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::PARAMETER |
---|
PARAMETER_COMMA
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::PARAMETER_COMMA |
---|
SERVICE
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::SERVICE |
---|
_METHOD_
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::_METHOD_ |
---|
_PARAMETER_
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::_PARAMETER_ |
---|
_SERVICE_
inherited_from | \Amfphp_BackOffice_ClientGenerator_LocalClientGenerator::_SERVICE_ |
---|