Documentation

Core_QueryBuilder_Lock extends Core_QueryBuilder_Statement

LOCK TABLES Database Abstraction Layer (DBAL)

http://dev.mysql.com/doc/refman/5.5/en/lock-tables.html

$oCore_QueryBuilder_Lock = Core_QueryBuilder::lock('tableName1', 'READ') ->execute(); // Lock multiple tables $oCore_QueryBuilder_Lock = Core_QueryBuilder::lock('tableName1', 'READ') ->table('tableName2', 'WRITE') ->execute();
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
$_queryType  : mixed
DataBase Query Type 10 - LOCK
$_table  : array<string|int, mixed>
List of tables
$_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()  : string
Build the SQL query
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
table()  : Core_QueryBuilder_Lock
Add table name
unbuffered()  : self
Query without fetching and buffering the result rows
unlock()  : Core_DataBase
UNLOCK TABLES
_buildComment()  : string|null
Build Comment
_buildLock()  : string
Build table lock list
_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

$_queryType

DataBase Query Type 10 - LOCK

protected mixed $_queryType = 10

$_table

List of tables

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

$_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 $oCore_QueryBuilder_Lock = Core_QueryBuilder::lock('tableName1', 'READ') ->execute();

Tags
see
table()

__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 the SQL query

public build() : string
Return values
string

The SQL query

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>

table()

Add table name

public table(string $tableName, string $type) : Core_QueryBuilder_Lock
Parameters
$tableName : string

table name

$type : string

lock type $oCore_QueryBuilder_Lock = Core_QueryBuilder::lock() ->table('tableName1', 'READ');

Return values
Core_QueryBuilder_Lock

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

_buildLock()

Build table lock list

protected _buildLock(array<string|int, mixed> $tables) : string
Parameters
$tables : array<string|int, mixed>

list of tables

Return values
string

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