PHP Class Owl\Repositories\Fluent\AbstractFluent

Afficher le fichier Open project: owl/owl

Protected Properties

Свойство Type Description
$table Table name

Méthodes publiques

Méthode Description
delete ( array $wkey, $table = null ) : int:deleted Deletel a record.
find ( array $conditions ) : stcClass Find a record.
getTableName ( ) : string Get a table name.
insert ( array $params, $table = null ) : integer Insert a record.
update ( array $params, array $wkey, $table = null ) : integer Update a record.

Méthodes protégées

Méthode Description
builder ( ) : Builder Return query builder.
setTimestamps ( array $params, $createdFlag = true ) : array Set timestamps.

Method Details

builder() protected méthode

Return query builder.
protected builder ( ) : Builder
Résultat Illuminate\Database\Query\Builder

delete() public méthode

Deletel a record.
public delete ( array $wkey, $table = null ) : int:deleted
$wkey array array :where key(column name) => value
$table string :table name(defalut: getTableName())
Résultat int:deleted count number

find() public méthode

Find a record.
public find ( array $conditions ) : stcClass
$conditions array
Résultat stcClass | null

getTableName() abstract public méthode

Get a table name.
abstract public getTableName ( ) : string
Résultat string

insert() public méthode

Insert a record.
public insert ( array $params, $table = null ) : integer
$params array array :key(column name) => value
$table string :table name(defalut: getTableName())
Résultat integer :inserted record's id

setTimestamps() protected méthode

Set timestamps.
protected setTimestamps ( array $params, $createdFlag = true ) : array
$params array array
Résultat array

update() public méthode

Update a record.
public update ( array $params, array $wkey, $table = null ) : integer
$params array array :key(column name) => value
$wkey array array :where key(column name) => value
$table string :table name(defalut: getTableName())
Résultat integer :updated count number

Property Details

$table protected_oe property

Table name
protected $table