PHP 클래스 Owl\Repositories\Fluent\AbstractFluent

파일 보기 프로젝트 열기: owl/owl

보호된 프로퍼티들

프로퍼티 타입 설명
$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