|
MIOLO26
|
Membros públicos | |
| __construct ($columns='', $tables='', $where='', $orderBy='', $groupBy='', $having='', $forUpdate=false) | |
| setDb ($db) | |
| setColumns ($string, $distinct=false) | |
| setColumnsOverride (array $columns) | |
| clearColumns () | |
| getColumns () | |
| setTables ($string) | |
| setGroupBy ($string) | |
| clearGroupBy () | |
| setOrderBy ($string) | |
| getOrderBy () | |
| clearOrderBy () | |
| addEqualCondition ($column, $value) | |
| addNotEqualCondition ($column, $value) | |
| addBetweenCondition ($column, $value1, $value2) | |
| addGreaterCondition ($column, $value) | |
| addGreaterEqualCondition ($column, $value) | |
| addSmallerCondition ($column, $value) | |
| addSmallerEqualCondition ($column, $value) | |
| addNotIlikeCondition ($column, $value) | |
| addNotLikeCondition ($column, $value) | |
| addLikeCondition ($column, $value) | |
| addLikeConditionUnaccent ($column, $value) | |
| addIlikeCondition ($column, $value) | |
| addIlikeConditionUnaccent ($column, $value) | |
| addWhereIn ($column, array $values) | |
| addWhereNotIn ($column, array $values) | |
| setWhere ($string, array $parameters=null) | |
| getWhere () | |
| setWhereAnd ($string, array $parameters=null) | |
| setWhereOr ($string, array $parameters=null) | |
| getLimit () | |
| setLimit ($limit) | |
| clearLimit () | |
| getOffsetSQL () | |
| setOffsetSQL ($offsetSQL) | |
| clearOffsetSQL () | |
| setHaving ($string) | |
| setHavingAnd ($string) | |
| setHavingOr ($string) | |
| setJoin ($table1, $table2, $cond, $type='INNER') | |
| setLeftJoin ($table1, $table2, $cond) | |
| setRightJoin ($table1, $table2, $cond) | |
| setForUpdate ($forUpdate=false) | |
| SetSetOperation ($operation, MSQL $sql) | |
| bind ($parameters=null) | |
| prepare ($parameters=null) | |
| insert ($parameters=null) | |
| insertFrom ($sql) | |
| delete ($parameters=null) | |
| update ($parameters=null) | |
| select ($parameters=null) | |
| selectCount () | |
| clear () | |
| setParameters () | |
| addParameter ($value) | |
| setRange () | |
| setOffset ($offset, $rows) | |
| findStr ($target, $source) | |
| parseSqlCommand (&$cmd, $clause, $delimiters) | |
| createFrom ($sqltext, $params=array()) | |
| addInnerJoin ($table, $cond) | |
| addLeftJoin ($table, $cond) | |
| getNewJoins () | |
| convertArrayToIn (array $values=null) | |
| startSubCondition () | |
| endSubCondition () | |
Membros públicos estáticos | |
| static | deleteTable ($tableName, array $where) |
| static | insertTable ($tableName, array $values) |
| static | updateTable ($tableName, array $values, array $where) |
Campos de Dados | |
| $db | |
| $distinct | |
| $columns | |
| $tables | |
| $where | |
| $groupBy | |
| $having | |
| $orderBy | |
| $forUpdate | |
| $join | |
| $parameters | |
| $command | |
| $range | |
| $offsetSQL | |
| $bind | |
| $stmt | |
| $setOperation | |
| $limit | |
| __construct | ( | $columns = '', | |
| $tables = '', | |||
| $where = '', | |||
| $orderBy = '', | |||
| $groupBy = '', | |||
| $having = '', | |||
| $forUpdate = false ) |
| addBetweenCondition | ( | $column, | |
| $value1, | |||
| $value2 ) |
| addEqualCondition | ( | $column, | |
| $value ) |
Adiciona uma condicao padrao de equivalencia no WHERE
| string | $column | |
| string | $value |
| addGreaterCondition | ( | $column, | |
| $value ) |
| addGreaterEqualCondition | ( | $column, | |
| $value ) |
| addIlikeCondition | ( | $column, | |
| $value ) |
| addIlikeConditionUnaccent | ( | $column, | |
| $value ) |
| addInnerJoin | ( | $table, | |
| $cond ) |
Adiciona tabela com INNER JOIN
| string | $table | |
| string | $cond |
| addLeftJoin | ( | $table, | |
| $cond ) |
Adiciona tabela com LEFT JOIN
| string | $table | |
| string | $cond |
| addLikeCondition | ( | $column, | |
| $value ) |
| addLikeConditionUnaccent | ( | $column, | |
| $value ) |
| addNotEqualCondition | ( | $column, | |
| $value ) |
| addNotIlikeCondition | ( | $column, | |
| $value ) |
| addNotLikeCondition | ( | $column, | |
| $value ) |
| addParameter | ( | $value | ) |
| addSmallerCondition | ( | $column, | |
| $value ) |
| addSmallerEqualCondition | ( | $column, | |
| $value ) |
| addWhereIn | ( | $column, | |
| array | $values ) |
| addWhereNotIn | ( | $column, | |
| array | $values ) |
| bind | ( | $parameters = null | ) |
| clear | ( | ) |
Clear MSQL attributes.
| clearColumns | ( | ) |
| clearGroupBy | ( | ) |
| clearLimit | ( | ) |
| clearOffsetSQL | ( | ) |
| clearOrderBy | ( | ) |
| convertArrayToIn | ( | array | $values = null | ) |
Converte conjunto de valores para realidade SQL
| createFrom | ( | $sqltext, | |
| $params = array() ) |
Populate the current MSQL instance based on a given SQL instruction.
| string | $sqltext | SQL instruction. |
| delete | ( | $parameters = null | ) |
|
static |
Retorna comando de DELETE para tabela e valores passados
| string | $tableName | |
| array | $where |
| endSubCondition | ( | ) |
| findStr | ( | $target, | |
| $source ) |
| getColumns | ( | ) |
| getLimit | ( | ) |
| getNewJoins | ( | ) |
| getOffsetSQL | ( | ) |
| getOrderBy | ( | ) |
| getWhere | ( | ) |
| insert | ( | $parameters = null | ) |
Returns insert command. This method returns the sql insert command.
| array | $parameters | Array of values. |
| insertFrom | ( | $sql | ) |
|
static |
| parseSqlCommand | ( | & | $cmd, |
| $clause, | |||
| $delimiters ) |
| prepare | ( | $parameters = null | ) |
| select | ( | $parameters = null | ) |
Returns SQL select command. This method returns the SQL select command.
| array | $parameters | Array of values. |
| selectCount | ( | ) |
Substitui as colunas para COUNT(*)
| setColumns | ( | $string, | |
| $distinct = false ) |
Set the columns Use this method to set which columns must be used.
| string | $string | Name of the columns. |
| boolean | $distinct | If you want a distinct select, inform TRUE. |
| setColumnsOverride | ( | array | $columns | ) |
Limpa e define novamente as colunas
| array | $columns |
| setDb | ( | $db | ) |
| setForUpdate | ( | $forUpdate = false | ) |
| setGroupBy | ( | $string | ) |
| string | $string | Group by columns separated by comma. E.g.: 'column1, column2' |
| setHaving | ( | $string | ) |
| setHavingAnd | ( | $string | ) |
| setHavingOr | ( | $string | ) |
| setJoin | ( | $table1, | |
| $table2, | |||
| $cond, | |||
| $type = 'INNER' ) |
| setLeftJoin | ( | $table1, | |
| $table2, | |||
| $cond ) |
| setLimit | ( | $limit | ) |
| setOffset | ( | $offset, | |
| $rows ) |
| setOffsetSQL | ( | $offsetSQL | ) |
| setOrderBy | ( | $string | ) |
| string | $string | Order by columns separated by comma. E.g.: 'column1, column2 DESC' |
| setParameters | ( | ) |
| setRange | ( | ) |
| setRightJoin | ( | $table1, | |
| $table2, | |||
| $cond ) |
| SetSetOperation | ( | $operation, | |
| MSQL | $sql ) |
| setTables | ( | $string | ) |
| string | $string | Table names separated by comma. E.g.: 'table1, table2' |
| setWhere | ( | $string, | |
| array | $parameters = null ) |
| string | $string | Add conditional statement. E.g.: "column <> 'condition'" |
| setWhereAnd | ( | $string, | |
| array | $parameters = null ) |
| string | $string | Add AND conditional statement. E.g.: "column <> 'condition'" |
| setWhereOr | ( | $string, | |
| array | $parameters = null ) |
| string | $string | Add OR conditional statement. E.g.: "column <> 'condition'" |
| startSubCondition | ( | ) |
| update | ( | $parameters = null | ) |
|
static |
Retorna comando de UPDATE para tabela e valores passados
| string | $tableName | |
| array | $values | |
| array | $where |
| $bind |
| $columns |
| $command |
| $db |
| $distinct |
| $forUpdate |
| $groupBy |
| $having |
| $join |
| $limit |
| $offsetSQL |
| $orderBy |
| $parameters |
| $range |
| $setOperation |
| $stmt |
| $tables |
| $where |