PHP Class Ouzo\Tools\Model\Template\Generator

Show file Open project: letsdrink/ouzo Class Usage Examples

Public Methods

Method Description
__construct ( $tableName, $className = null, $nameSpace = '', $tablePrefix = 't', $shortArrays = false )
dialectAdapter ( ) : Dialect
getClassNamespace ( )
getTemplateClassName ( )
saveToFile ( $fileName )
templateContents ( )

Private Methods

Method Description
classNameFromTableName ( )
getDialectShortName ( $adapterObject )
normalizeNameSpace ( $nameSpace )
objectShortClassName ( $object )
preparePaths ( $basename )
removeTablePrefix ( $tableNameParts )
thisNamespace ( )

Method Details

__construct() public method

public __construct ( $tableName, $className = null, $nameSpace = '', $tablePrefix = 't', $shortArrays = false )

dialectAdapter() public method

public dialectAdapter ( ) : Dialect
return Ouzo\Tools\Model\Template\Dialect\Dialect

getClassNamespace() public method

public getClassNamespace ( )

getTemplateClassName() public method

saveToFile() public method

public saveToFile ( $fileName )

templateContents() public method

public templateContents ( )