Class Generate
Class Generate definition.
Methods summary
public static
|
#
__callStatic( string $name, array $arguments )
Generic call method.
Parameters
- $name
- Method name.
- $arguments
- Method parameters.
|
public static
|
#
controller( string $mode, string $name )
Controller generator.
Parameters
- $mode
- Framework mode name.
- $name
- Controller name.
|
public static
|
#
model( string $mode, string $name )
Model generator.
Parameters
- $mode
- Framework mode name.
- $name
- Model name.
|
public static
|
#
migration( string $name, mixed $params )
Migration generator.
Parameters
- $name
- Name string.
- $params
- Migration parameters.
|
private static
string
|
#
parseTemplate( string $template, array $params )
Parses a template.
Parameters
- $template
- Path to template.
- $params
- Template parameters.
Returns
string
Throws
Exception General Exception.
SmartyException Smarty Exception.
|
private static
string
|
#
getMigrationName( string $migration )
Retrieves migration name.
Retrieves migration name.
Parameters
- $migration
- Migration name.
Returns
string
|