PHP Class Pagekit\Database\Table

Afficher le fichier Open project: pagekit/pagekit

Protected Properties

Свойство Type Description
$connection Pagekit\Database\Connection
$table Table

Méthodes publiques

Méthode Description
__call ( string $method, array $args ) : mixed Proxy method call to table.
__construct ( Table $table, Pagekit\Database\Connection $connection ) Constructor.
addColumn ( string $columnName, string $typeName, array $options = [] ) : Column
addIndex ( array $columnNames, string | null $indexName = null, array $flags = [], array $options = [] ) : self
addUniqueIndex ( array $columnNames, string | null $indexName = null, array $options = [] ) : self

Method Details

__call() public méthode

Proxy method call to table.
public __call ( string $method, array $args ) : mixed
$method string
$args array
Résultat mixed

__construct() public méthode

Constructor.
public __construct ( Table $table, Pagekit\Database\Connection $connection )
$table Table
$connection Pagekit\Database\Connection

addColumn() public méthode

public addColumn ( string $columnName, string $typeName, array $options = [] ) : Column
$columnName string
$typeName string
$options array
Résultat Column

addIndex() public méthode

public addIndex ( array $columnNames, string | null $indexName = null, array $flags = [], array $options = [] ) : self
$columnNames array
$indexName string | null
$flags array
$options array
Résultat self

addUniqueIndex() public méthode

public addUniqueIndex ( array $columnNames, string | null $indexName = null, array $options = [] ) : self
$columnNames array
$indexName string | null
$options array
Résultat self

Property Details

$connection protected_oe property

protected Connection,Pagekit\Database $connection
Résultat Pagekit\Database\Connection

$table protected_oe property

protected Table,Pagekit\Database $table
Résultat Table