PHP Class Jarves\ORM\Builder\Propel

Inheritance: implements Jarves\ORM\Builder\BuildInterface
Afficher le fichier Open project: jarves/jarves

Protected Properties

Свойство Type Description
$databases
$filesystem Jarves\Filesystem\Filesystem
$kernel Symfony\Component\HttpKernel\KernelInterface
$objects Jarves\Objects

Méthodes publiques

Méthode 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}

Méthodes protégées

Méthode 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 méthode

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 méthode

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

addRelation() protected méthode

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

build() public méthode

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 méthode

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

getFormattedXml() protected méthode

protected getFormattedXml ( $xml ) : string
$xml
Résultat string

getPropelColumnType() protected méthode

Transform some sql types to propel types
protected getPropelColumnType ( string $type ) : mixed
$type string
Résultat mixed

getSchema() public méthode

public getSchema ( Object $object ) : string
$object Jarves\Configuration\Object
Résultat string

getXmlTable() protected méthode

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

needsBuild() public méthode

{@inheritDocs}
public needsBuild ( )

setupColumnAttributes() protected méthode

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

sxml_append() protected méthode

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
Résultat Jarves\Filesystem\Filesystem

$kernel protected_oe property

protected KernelInterface,Symfony\Component\HttpKernel $kernel
Résultat Symfony\Component\HttpKernel\KernelInterface

$objects protected_oe property

protected Objects,Jarves $objects
Résultat Jarves\Objects