PHP Class Bolt\Storage\Database\Schema\Builder\ContentTables

Author: Gawain Lynch ([email protected])
Inheritance: extends Bolt\Storage\Database\Schema\Builder\BaseBuilder
Datei anzeigen Open project: bolt/bolt

Protected Properties

Property Type Description
$tableSchemas array

Public Methods

Method Description
getSchemaTables ( Doctrine\DBAL\Schema\Schema $schema, Config $config ) : Doctrine\DBAL\Schema\Table[] Build the schema for Bolt ContentType tables.

Private Methods

Method Description
addContentTypeTableColumn ( Bolt\Storage\Database\Schema\Table\ContentType $tableObj, Doctrine\DBAL\Schema\Table $table, string $fieldName, array $values, Manager $fieldManager ) Add a single column to the ContentType table.
addContentTypeTableColumns ( Bolt\Storage\Database\Schema\Table\ContentType $tableObj, Doctrine\DBAL\Schema\Table $table, array $fields, Manager $fieldManager ) Add the custom columns for the ContentType.
getContentTypeTableColumnType ( array $values ) : string Certain field types can have single or JSON array types, figure it out.
getNormalisedContentTypes ( Config $config ) : array Return an array of ContentTypes with the table name is the key.

Method Details

getSchemaTables() public method

Build the schema for Bolt ContentType tables.
public getSchemaTables ( Doctrine\DBAL\Schema\Schema $schema, Config $config ) : Doctrine\DBAL\Schema\Table[]
$schema Doctrine\DBAL\Schema\Schema
$config Bolt\Config
return Doctrine\DBAL\Schema\Table[]

Property Details

$tableSchemas protected_oe property

protected array $tableSchemas
return array