Dotclear 2.24
|
Public Member Functions | |
__construct () | |
reference ($c, bool $reset=false) | |
ref ($c, bool $reset=false) | |
set ($c, bool $reset=false) | |
sets ($c, bool $reset=false) | |
whereStatement () | |
statement () | |
update (?cursor $cur=null) | |
run (?cursor $cur=null) | |
![]() | |
__construct () | |
__get (string $property) | |
__set (string $property, $value) | |
__isset (string $property) | |
__unset (string $property) | |
__invoke () | |
statement () | |
columns ($c, bool $reset=false) | |
fields ($c, bool $reset=false) | |
column ($c, bool $reset=false) | |
field ($c, bool $reset=false) | |
from ($c, bool $reset=false, bool $first=false) | |
where ($c, bool $reset=false) | |
on ($c, bool $reset=false) | |
cond ($c, bool $reset=false) | |
and ($c, bool $reset=false) | |
andGroup ($c) | |
or ($c, bool $reset=false) | |
orGroup ($c) | |
sql ($c, bool $reset=false) | |
escape (string $value) | |
quote ($value, bool $escape=true) | |
alias (string $name, string $alias) | |
as (string $name, string $alias) | |
in ($list, string $cast='') | |
inSelect (string $field, dcSelectStatement $sql) | |
dateFormat (string $field, string $pattern) | |
like (string $field, string $pattern) | |
regexp (string $value) | |
unique (string $field) | |
count (string $field, ?string $as=null, bool $unique=false) | |
avg (string $field, ?string $as=null) | |
max (string $field, ?string $as=null) | |
min (string $field, ?string $as=null) | |
sum (string $field, ?string $as=null) | |
isNull (string $field) | |
isNotNull (string $field) | |
isSame (string $local, string $external) | |
compare (string $external, bool $trigger_error=false, bool $dump=false, bool $print=false) | |
Protected Attributes | |
$set | |
![]() | |
const | VERBOSE_SQL_ALIAS = false |
$con | |
$syntax | |
$_AS = ' ' | |
$columns = [] | |
$from = [] | |
$where = [] | |
$cond = [] | |
$sql = [] | |
Update Statement : small utility to build update queries
__construct | ( | ) |
Class constructor
Reimplemented from dcSqlStatement.
reference | ( | $c, | |
bool | $reset = false |
||
) |
from() alias
mixed | $c | the reference clause(s) |
boolean | $reset | reset previous reference first |
References dcSqlStatement\from().
ref | ( | $c, | |
bool | $reset = false |
||
) |
from() alias
mixed | $c | the reference clause(s) |
boolean | $reset | reset previous reference first |
References dcSqlStatement\from().
set | ( | $c, | |
bool | $reset = false |
||
) |
Adds update value(s)
mixed | $c | the udpate values(s) |
boolean | $reset | reset previous update value(s) first |
sets | ( | $c, | |
bool | $reset = false |
||
) |
set() alias
mixed | $c | the update value(s) |
boolean | $reset | reset previous update value(s) first |
whereStatement | ( | ) |
Returns the WHERE part of update statement
Useful to construct the where clause used with cursor->update() method
References dcCore\app(), dcSqlStatement\cond(), dcSqlStatement\count(), dcSqlStatement\sql(), and dcSqlStatement\where().
Referenced by statement(), and update().
statement | ( | ) |
Returns the update statement
Reimplemented from dcSqlStatement.
References dcCore\app(), dcSqlStatement\count(), dcSqlStatement\from(), and whereStatement().
Referenced by update().
update | ( | ?cursor | $cur = null | ) |
Run the SQL update query
cursor | null | $cur | The cursor |
References dcSqlStatement\$sql, statement(), and whereStatement().
Referenced by run().
run | ( | ?cursor | $cur = null | ) |
|
protected |