Class ZendPHP
Class that implements a zend extension generator.
- Peg\Lib\Generator\Base
-
Peg\Lib\Generator\ZendPHP
public
|
#
__construct( string $templates, string $output,
The symbols object with all definitions required to generate the code. |
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
GenerateFunction(
Generates the PHP wrapping code from a C/C++ function. |
public
|
#
GenerateArgInfo(
Generates an arginfo php C structure which is basically used for reflection to work properly. |
public
|
#
GenerateOtherSources( )
Generates other sources required to build the extension, eg: php_extension.h, extension.c |
public
|
|
public
|
|
public
string
|
#
GetProtoHeader(
Generates proto doc comments header for a function. |
public
string
|
|
public
string
|
#
GetRegisterConstantTemplate( string $name, string $namespace = "", mixed $type = "" )
Retrieve the template path for registering constants, also checks if a valid override exists and returns that instead. |
public
string
|
#
GetRegisterVarConstantTemplate(
Retrieve the template path for registering constants registered as global variables, also checks if a valid override exists and returns that instead. |
$generator_name,
$output_path,
$symbols,
$templates_path
|