PHP 클래스 InsertQuery, fluentpdo

상속: extends BaseQuery
파일 보기 프로젝트 열기: fpdo/fluentpdo 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( FluentPDO $fpdo, string $table, $values ) InsertQuery constructor.
delayed ( ) : InsertQuery Force insert operation delay support
execute ( mixed $sequence = null ) : integer Execute insert query
ignore ( ) : InsertQuery Force insert operation to fail silently
onDuplicateKeyUpdate ( array $values ) : InsertQuery Add ON DUPLICATE KEY UPDATE
values ( $values ) : InsertQuery Add VALUES

보호된 메소드들

메소드 설명
buildParameters ( ) : array
filterLiterals ( $statements ) : array Removes all FluentLiteral instances from the argument since they are not to be used as PDO parameters but rather injected directly into the query
getClauseInsertInto ( ) : string
getClauseOnDuplicateKeyUpdate ( ) : string
getClauseValues ( ) : string
parameterGetValue ( $param ) : string

비공개 메소드들

메소드 설명
addOneValue ( array $oneValue )

메소드 상세

__construct() 공개 메소드

InsertQuery constructor.
public __construct ( FluentPDO $fpdo, string $table, $values )
$fpdo FluentPDO
$table string
$values

buildParameters() 보호된 메소드

protected buildParameters ( ) : array
리턴 array

delayed() 공개 메소드

Force insert operation delay support
public delayed ( ) : InsertQuery
리턴 InsertQuery

execute() 공개 메소드

Execute insert query
public execute ( mixed $sequence = null ) : integer
$sequence mixed
리턴 integer last inserted id or false

filterLiterals() 보호된 메소드

Removes all FluentLiteral instances from the argument since they are not to be used as PDO parameters but rather injected directly into the query
protected filterLiterals ( $statements ) : array
$statements
리턴 array

getClauseInsertInto() 보호된 메소드

protected getClauseInsertInto ( ) : string
리턴 string

getClauseOnDuplicateKeyUpdate() 보호된 메소드

getClauseValues() 보호된 메소드

protected getClauseValues ( ) : string
리턴 string

ignore() 공개 메소드

Force insert operation to fail silently
public ignore ( ) : InsertQuery
리턴 InsertQuery

onDuplicateKeyUpdate() 공개 메소드

Add ON DUPLICATE KEY UPDATE
public onDuplicateKeyUpdate ( array $values ) : InsertQuery
$values array
리턴 InsertQuery

parameterGetValue() 보호된 메소드

protected parameterGetValue ( $param ) : string
$param
리턴 string

values() 공개 메소드

Add VALUES
public values ( $values ) : InsertQuery
$values
리턴 InsertQuery