Свойство | Тип | Описание | |
---|---|---|---|
$clauses | - definition clauses | ||
$parameters | array | ||
$statements | array |
Метод | Описание | |
---|---|---|
asObject ( boolean | object $object = true ) : BaseQuery | Select an item as object | |
execute ( ) : PDOStatement | Execute query with earlier added parameters | |
getIterator ( ) : PDOStatement | Implements method from IteratorAggregate | |
getParameters ( ) : array | Get query parameters | |
getQuery ( boolean $formatted = true ) : string | Get query string | |
getResult ( ) : PDOStatement | Get PDOStatement result | |
getTime ( ) : float | Get time of execution |
Метод | Описание | |
---|---|---|
__construct ( FluentPDO $fpdo, $clauses ) | BaseQuery constructor. | |
addStatement ( $clause, $statement, array $parameters = [] ) | Add statement for all kind of clauses | |
buildParameters ( ) : array | ||
buildQuery ( ) : string | Generate query | |
getPDO ( ) : PDO | ||
getStructure ( ) : FluentStructure | ||
quote ( $value ) : string | ||
resetClause ( $clause ) | Remove all prev defined statements |
Метод | Описание | |
---|---|---|
clauseNotEmpty ( $clause ) : boolean | ||
debugger ( ) | Echo/pass a debug string | |
formatValue ( DateTime $val ) : string | ||
initClauses ( ) | Initialize statement and parameter clauses. |
protected __construct ( FluentPDO $fpdo, $clauses ) | ||
$fpdo | FluentPDO | |
$clauses |
protected addStatement ( $clause, $statement, array $parameters = [] ) | ||
$clause | ||
$statement | ||
$parameters | array |
public execute ( ) : PDOStatement | ||
Результат | PDOStatement |
public getIterator ( ) : PDOStatement | ||
Результат | PDOStatement |
public getParameters ( ) : array | ||
Результат | array |
public getResult ( ) : PDOStatement | ||
Результат | PDOStatement |
protected getStructure ( ) : FluentStructure | ||
Результат | FluentStructure |
protected resetClause ( $clause ) | ||
$clause |