PHP Class Jarves\ORM\Builder\Propel

Inheritance: implements Jarves\ORM\Builder\BuildInterface
Datei anzeigen Open project: jarves/jarves

Protected Properties

Property Type Description
$databases
$filesystem Jarves\Filesystem\Filesystem
$kernel Symfony\Component\HttpKernel\KernelInterface
$objects Jarves\Objects

Public Methods

Method Description
__construct ( Filesystem $filesystem, Objects $objects, Symfony\Component\HttpKernel\KernelInterface $kernel )
build ( array $objects, Symfony\Component\Console\Output\OutputInterface $output, boolean $overwrite = false )
getSchema ( Object $object ) : string
needsBuild ( ) {@inheritDocs}

Protected Methods

Method Description
addForeignKey ( Object $object, Jarves\Admin\FieldTypes\RelationDefinitionInterface $relation, &$xmlTable )
addRelation ( Object $object, Jarves\Admin\FieldTypes\RelationDefinitionInterface $relation, &$xmlTable )
declareTable ( SimpleXMLElement $database, Object $object )
getFormattedXml ( $xml ) : string
getPropelColumnType ( string $type ) : mixed Transform some sql types to propel types
getXmlTable ( Object $object, SimpleXMLElement $objectTable = null ) : SimpleXMLElement
setupColumnAttributes ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column, $xmlColumn )
sxml_append ( SimpleXMLElement $to, SimpleXMLElement $from )

Method Details

__construct() public method

public __construct ( Filesystem $filesystem, Objects $objects, Symfony\Component\HttpKernel\KernelInterface $kernel )
$filesystem Jarves\Filesystem\Filesystem
$objects Jarves\Objects
$kernel Symfony\Component\HttpKernel\KernelInterface

addForeignKey() protected method

protected addForeignKey ( Object $object, Jarves\Admin\FieldTypes\RelationDefinitionInterface $relation, &$xmlTable )
$object Jarves\Configuration\Object
$relation Jarves\Admin\FieldTypes\RelationDefinitionInterface

addRelation() protected method

protected addRelation ( Object $object, Jarves\Admin\FieldTypes\RelationDefinitionInterface $relation, &$xmlTable )
$object Jarves\Configuration\Object
$relation Jarves\Admin\FieldTypes\RelationDefinitionInterface

build() public method

public build ( array $objects, Symfony\Component\Console\Output\OutputInterface $output, boolean $overwrite = false )
$objects array
$output Symfony\Component\Console\Output\OutputInterface
$overwrite boolean

declareTable() protected method

protected declareTable ( SimpleXMLElement $database, Object $object )
$database SimpleXMLElement
$object Jarves\Configuration\Object

getFormattedXml() protected method

protected getFormattedXml ( $xml ) : string
$xml
return string

getPropelColumnType() protected method

Transform some sql types to propel types
protected getPropelColumnType ( string $type ) : mixed
$type string
return mixed

getSchema() public method

public getSchema ( Object $object ) : string
$object Jarves\Configuration\Object
return string

getXmlTable() protected method

protected getXmlTable ( Object $object, SimpleXMLElement $objectTable = null ) : SimpleXMLElement
$object Jarves\Configuration\Object
$objectTable SimpleXMLElement
return SimpleXMLElement

needsBuild() public method

{@inheritDocs}
public needsBuild ( )

setupColumnAttributes() protected method

protected setupColumnAttributes ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column, $xmlColumn )
$column Jarves\Admin\FieldTypes\ColumnDefinitionInterface

sxml_append() protected method

protected sxml_append ( SimpleXMLElement $to, SimpleXMLElement $from )
$to SimpleXMLElement
$from SimpleXMLElement

Property Details

$databases protected_oe property

protected $databases

$filesystem protected_oe property

protected Filesystem,Jarves\Filesystem $filesystem
return Jarves\Filesystem\Filesystem

$kernel protected_oe property

protected KernelInterface,Symfony\Component\HttpKernel $kernel
return Symfony\Component\HttpKernel\KernelInterface

$objects protected_oe property

protected Objects,Jarves $objects
return Jarves\Objects