Documentation

Core_QueryBuilder_Statement

AbstractYes

Abstract class for statements

Tags
subpackage

Core\Querybuilder

version
7.x
copyright

© 2005-2025, https://www.hostcms.ru

Table of Contents

Properties

$_comment  : array<string|int, mixed>
Comment --
$_dataBase  : mixed
DataBase
$_unbuffered  : mixed
Query without fetching and buffering the result rows

Methods

__call()  : mixed
Triggered when invoking inaccessible methods in an object context
__construct()  : mixed
Constructor.
__set()  : self
Run when writing data to inaccessible properties
build()  : mixed
Build statement
clearComment()  : self
Clear Comment
comment()  : self
Add comment
execute()  : Core_DataBase
Execute query
getComment()  : array<string|int, mixed>
Get Comment
getDataBase()  : Core_DataBase
Get DataBase
setDataBase()  : Core_QueryBuilder_Statement
Set DataBase
unbuffered()  : self
Query without fetching and buffering the result rows
_buildComment()  : string|null
Build Comment
_isObjectSelect()  : bool
Is $object Core_QueryBuilder_Select
_quoteColumns()  : array<string|int, mixed>
Quote columns
_quoteValues()  : array<string|int, mixed>
Quote arary of values

Properties

$_comment

Comment --

protected array<string|int, mixed> $_comment = array()

$_dataBase

DataBase

protected mixed $_dataBase = \NULL

$_unbuffered

Query without fetching and buffering the result rows

protected mixed $_unbuffered = \FALSE

Methods

__call()

Triggered when invoking inaccessible methods in an object context

public __call(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
$name : string

method name

$arguments : array<string|int, mixed>

arguments

__construct()

Constructor.

public __construct([array<string|int, mixed> $args = array() ]) : mixed
Parameters
$args : array<string|int, mixed> = array()

list of arguments

__set()

Run when writing data to inaccessible properties

public __set(string $property, string $value) : self
Parameters
$property : string

property name

$value : string

property value

Return values
self

build()

Build statement

public abstract build() : mixed

clearComment()

Clear Comment

public clearComment() : self
Return values
self

comment()

Add comment

public comment(string $comment) : self

http://dev.mysql.com/doc/refman/5.7/en/comments.html

Parameters
$comment : string
Return values
self

getComment()

Get Comment

public getComment() : array<string|int, mixed>
Return values
array<string|int, mixed>

unbuffered()

Query without fetching and buffering the result rows

public unbuffered(bool $unbuffered) : self
Parameters
$unbuffered : bool
Return values
self

_buildComment()

Build Comment

protected _buildComment(array<string|int, mixed> $aComment) : string|null
Parameters
$aComment : array<string|int, mixed>
Return values
string|null

The SQL query

_isObjectSelect()

Is $object Core_QueryBuilder_Select

protected _isObjectSelect(mixed $object) : bool
Parameters
$object : mixed
Return values
bool

_quoteColumns()

Quote columns

protected _quoteColumns(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
Return values
array<string|int, mixed>

_quoteValues()

Quote arary of values

protected _quoteValues(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results