PHP Class Jarves\Propel\PropelHelper

Class PropelHelper
显示文件 Open project: jarves/jarves

Public Properties

Property Type Description
$classDefinition array
$objectsToExtension array

Protected Properties

Property Type Description
$jarves Jarves\Jarves

Public Methods

Method Description
__construct ( Jarves $jarves, Filesystem $cacheFilesystem )
checkModelXml ( ) : array
cleanup ( )
collectSchemas ( ) : boolean
fullGenerator ( ) : string
generateClasses ( ) : string
getConnectionYml ( Connection $connection, Connection[] $slaves ) : string
getJarves ( ) : Jarves
getManagerConfig ( Connection $connection )
getSqlDiff ( ) : array | string
getTempFolder ( ) : string
init ( ) : string
loadConfig ( )
moveClasses ( ) : string
setJarves ( Jarves $jarves )
updateSchema ( boolean $withDrop = false ) : string Updates database's Schema.
writeBuildProperties ( )
writeConfig ( ) : boolean

Method Details

__construct() public method

public __construct ( Jarves $jarves, Filesystem $cacheFilesystem )
$jarves Jarves\Jarves
$cacheFilesystem Jarves\Filesystem\Filesystem

checkModelXml() public method

public checkModelXml ( ) : array
return array

cleanup() public method

public cleanup ( )

collectSchemas() public method

public collectSchemas ( ) : boolean
return boolean

fullGenerator() public method

public fullGenerator ( ) : string
return string

generateClasses() public method

public generateClasses ( ) : string
return string

getConnectionYml() public method

public getConnectionYml ( Connection $connection, Connection[] $slaves ) : string
$connection Jarves\Configuration\Connection
$slaves Jarves\Configuration\Connection[]
return string

getJarves() public method

public getJarves ( ) : Jarves
return Jarves\Jarves

getManagerConfig() public method

public getManagerConfig ( Connection $connection )
$connection Jarves\Configuration\Connection

getSqlDiff() public method

public getSqlDiff ( ) : array | string
return array | string

getTempFolder() public method

public getTempFolder ( ) : string
return string

init() public method

public init ( ) : string
return string

loadConfig() public method

public loadConfig ( )

moveClasses() public method

public moveClasses ( ) : string
return string

setJarves() public method

public setJarves ( Jarves $jarves )
$jarves Jarves\Jarves

updateSchema() public method

This function creates whatever is needed to do the job. (means, calls writeXmlConfig() etc if necessary). This function inits the Propel class.
public updateSchema ( boolean $withDrop = false ) : string
$withDrop boolean
return string

writeBuildProperties() public method

writeConfig() public method

public writeConfig ( ) : boolean
return boolean

Property Details

$classDefinition public_oe property

public array $classDefinition
return array

$jarves protected_oe property

protected Jarves,Jarves $jarves
return Jarves\Jarves

$objectsToExtension public_oe property

public array $objectsToExtension
return array