PHP Класс Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 ( )