PHP Class Pagekit\Database\Table

ファイルを表示 Open project: pagekit/pagekit

Protected Properties

Property Type Description
$connection Pagekit\Database\Connection
$table Table

Public Methods

Method 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 method

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

__construct() public method

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

addColumn() public method

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

addIndex() public method

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

addUniqueIndex() public method

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

Property Details

$connection protected_oe property

protected Connection,Pagekit\Database $connection
return Pagekit\Database\Connection

$table protected_oe property

protected Table,Pagekit\Database $table
return Table