Class PhpWriter
PHP code generator helpers.
-
Object
-
PhpWriter
Methods summary
public static
|
|
public
|
|
public
string
|
#
write( string $mask )
Expands %node.word, %node.array, %node.args, %escape(), %modify(), %var, %raw
in code.
Expands %node.word, %node.array, %node.args, %escape(), %modify(), %var, %raw
in code.
Parameters
Returns
string
|
public
string
|
#
formatModifiers( string $var )
Formats modifiers calling.
Formats modifiers calling.
Parameters
Returns
string
|
public
string
|
#
formatArgs( )
Formats macro arguments to PHP code.
Formats macro arguments to PHP code.
Returns
string
|
public
string
|
#
formatArray( )
Formats macro arguments to PHP array.
Formats macro arguments to PHP array.
Returns
string
|
public
string
|
#
formatWord( string $s )
Formats parameter to PHP string.
Formats parameter to PHP string.
Parameters
Returns
string
|
public
boolean
|
|
public
MacroTokenizer
|
|
public
|
|