Ubiquity  2.0.0
php rapid development framework
SqlUtils Class Reference

Utilitaires SQL. More...

Static Public Member Functions

static getWhere ($keyAndValues, $quote="`")
 
static getMultiWhere ($values, $field, $quote="`")
 
static getInsertFields ($keyAndValues)
 
static getInsertFieldsValues ($keyAndValues)
 
static getUpdateFieldsKeyAndValues ($keyAndValues, $quote="`")
 
static checkWhere ($condition)
 
static getCondition ($keyValues, $classname=NULL, $separator=" AND ")
 
static getFieldList ($fields)
 

Static Private Member Functions

static getParameters ($keyAndValues)
 
static getQuotedKeys ($keyAndValues, $quote="`")
 

Detailed Description

Utilitaires SQL.

Author
jc
Version
1.0.0.3

Definition at line 13 of file SqlUtils.php.

Member Function Documentation

◆ checkWhere()

static checkWhere (   $condition)
static

Definition at line 63 of file SqlUtils.php.

◆ getCondition()

static getCondition (   $keyValues,
  $classname = NULL,
  $separator = " AND " 
)
static

Definition at line 71 of file SqlUtils.php.

◆ getFieldList()

static getFieldList (   $fields)
static

Definition at line 89 of file SqlUtils.php.

◆ getInsertFields()

static getInsertFields (   $keyAndValues)
static

Definition at line 47 of file SqlUtils.php.

◆ getInsertFieldsValues()

static getInsertFieldsValues (   $keyAndValues)
static

Definition at line 51 of file SqlUtils.php.

◆ getMultiWhere()

static getMultiWhere (   $values,
  $field,
  $quote = "`" 
)
static

Definition at line 39 of file SqlUtils.php.

◆ getParameters()

static getParameters (   $keyAndValues)
staticprivate

Definition at line 15 of file SqlUtils.php.

◆ getQuotedKeys()

static getQuotedKeys (   $keyAndValues,
  $quote = "`" 
)
staticprivate

Definition at line 23 of file SqlUtils.php.

◆ getUpdateFieldsKeyAndValues()

static getUpdateFieldsKeyAndValues (   $keyAndValues,
  $quote = "`" 
)
static

Definition at line 55 of file SqlUtils.php.

◆ getWhere()

static getWhere (   $keyAndValues,
  $quote = "`" 
)
static

Definition at line 31 of file SqlUtils.php.


The documentation for this class was generated from the following file: