PHP 클래스 Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider

파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container ) Constructor.
appendToSchema ( Doctrine\DBAL\Schema\Schema $schema ) Adds the DCA data to the Doctrine schema.
createSchema ( )

비공개 메소드들

메소드 설명
getSqlDefinitions ( ) : array Returns the SQL definitions from the Contao installer.
parseColumnSql ( Doctrine\DBAL\Schema\Table $table, string $columnName, string $sql ) Parses the column definition and adds it to the schema table.
parseIndexSql ( Doctrine\DBAL\Schema\Table $table, string $keyName, string $sql ) Parses the index definition and adds it to the schema table.
setLengthAndPrecisionByType ( string $type, string $dbType, integer &$length, integer &$scale, integer &$precision, boolean &$fixed ) Sets the length, scale, precision and fixed values by field type.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface

appendToSchema() 공개 메소드

Adds the DCA data to the Doctrine schema.
public appendToSchema ( Doctrine\DBAL\Schema\Schema $schema )
$schema Doctrine\DBAL\Schema\Schema

createSchema() 공개 메소드

public createSchema ( )