PHP Класс Owl\Repositories\Fluent\AbstractFluent

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$table Table name

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
builder ( ) : Builder Return query builder.
setTimestamps ( array $params, $createdFlag = true ) : array Set timestamps.

Описание методов

builder() защищенный Метод

Return query builder.
protected builder ( ) : Builder
Результат Illuminate\Database\Query\Builder

delete() публичный Метод

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())
Результат int:deleted count number

find() публичный Метод

Find a record.
public find ( array $conditions ) : stcClass
$conditions array
Результат stcClass | null

getTableName() абстрактный публичный Метод

Get a table name.
abstract public getTableName ( ) : string
Результат string

insert() публичный Метод

Insert a record.
public insert ( array $params, $table = null ) : integer
$params array array :key(column name) => value
$table string :table name(defalut: getTableName())
Результат integer :inserted record's id

setTimestamps() защищенный Метод

Set timestamps.
protected setTimestamps ( array $params, $createdFlag = true ) : array
$params array array
Результат array

update() публичный Метод

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())
Результат integer :updated count number

Описание свойств

$table защищенное свойство

Table name
protected $table