[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/s9e/text-formatter/src/Configurator/JavaScript/ -> CallbackGenerator.php (summary)

(no description)

File Size: 185 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CallbackGenerator:: (7 methods):

Class: CallbackGenerator  - X-Ref

__construct()   X-Ref

replaceCallbacks(array $config)   X-Ref
Replace all callbacks in given config

param: array $config Original config
return: array         Modified config

buildCallbackArguments(array $params, array $localVars)   X-Ref
Build the list of arguments used in a callback invocation

param: array  $params    Callback parameters
param: array  $localVars Known vars from the calling scope
return: string            JavaScript code

generateFunction(array $config, array $params)   X-Ref
Generate a function from a callback config

param: array $config Callback config
param: array $params Param names as keys, param types as values
return: Code

getHeader(array $params)   X-Ref
Generate a function header for given signature

param: array  $params Param names as keys, param types as values
return: string

mapArray(array $array, array $path, array $params)   X-Ref
Replace callbacks in given config array

param: array    $array  Original config
param: string[] $path   Path to callbacks
param: array    $params Default params
return: array            Modified config

parenthesizeCallback($callback)   X-Ref
Add parentheses to a function literal, if necessary

Will return single vars as-is, and will put anything else between parentheses

param: string $callback Original callback
return: string           Modified callback

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1