PHP Interface Blast\Orm\GatewayInterface

ファイルを表示 Open project: phpthinktank/blast-orm

Public Methods

Method Description
__construct ( $table ) Create a new gateway for a single table
delete ( $primaryKeyName, $primaryKey ) : mixed Prepare delete statement
insert ( $data, Doctrine\DBAL\Schema\Column[] $fields = [] ) Prepare insert statement
update ( $primaryKeyName, $data, Doctrine\DBAL\Schema\Column[] $fields = [] ) : mixed Prepare update statement

Method Details

__construct() public method

Create a new gateway for a single table
public __construct ( $table )
$table

delete() public method

Prepare delete statement
public delete ( $primaryKeyName, $primaryKey ) : mixed
$primaryKeyName
$primaryKey
return mixed

insert() public method

Prepare insert statement
public insert ( $data, Doctrine\DBAL\Schema\Column[] $fields = [] )
$data
$fields Doctrine\DBAL\Schema\Column[]

update() public method

Prepare update statement
public update ( $primaryKeyName, $data, Doctrine\DBAL\Schema\Column[] $fields = [] ) : mixed
$primaryKeyName
$data
$fields Doctrine\DBAL\Schema\Column[]
return mixed