diff --git a/classes/query_builder.php b/classes/query_builder.php index 5c14f05..776dc31 100644 --- a/classes/query_builder.php +++ b/classes/query_builder.php @@ -404,6 +404,7 @@ class Query_Builder { * @param string $pos * @param string $like * @param string $conj + * @return $this */ private function _like($field, $val, $pos, $like='LIKE', $conj='AND') { @@ -433,6 +434,8 @@ class Query_Builder { // Add to the values array $this->values[] = $val; + + return $this; } // -------------------------------------------------------------------------- @@ -447,8 +450,7 @@ class Query_Builder { */ public function like($field, $val, $pos='both') { - $this->_like($field, $val, $pos); - return $this; + return $this->_like($field, $val, $pos, 'LIKE', 'AND'); } // -------------------------------------------------------------------------- @@ -463,8 +465,7 @@ class Query_Builder { */ public function or_like($field, $val, $pos='both') { - $this->_like($field, $val, $pos, 'LIKE', 'OR'); - return $this; + return $this->_like($field, $val, $pos, 'LIKE', 'OR'); } // -------------------------------------------------------------------------- @@ -479,8 +480,7 @@ class Query_Builder { */ public function not_like($field, $val, $pos='both') { - $this->_like($field, $val, $pos, 'NOT LIKE'); - return $this; + return $this->_like($field, $val, $pos, 'NOT LIKE', 'AND'); } // -------------------------------------------------------------------------- @@ -495,7 +495,44 @@ class Query_Builder { */ public function or_not_like($field, $val, $pos='both') { - $this->_like($field, $val, $pos, 'NOT LIKE', 'OR'); + return $this->_like($field, $val, $pos, 'NOT LIKE', 'OR'); + } + + // -------------------------------------------------------------------------- + // ! Having methods + // -------------------------------------------------------------------------- + + /** + * Simplify building having clauses + * + * @param mixed $key + * @param mixed $val + * @param string $conj + * @return $this + */ + private function _having($key, $val=array(), $conj='AND') + { + $where = $this->_where($key, $val); + + // Create key/value placeholders + foreach($where as $f => $val) + { + // Split each key by spaces, in case there + // is an operator such as >, <, !=, etc. + $f_array = explode(' ', trim($f)); + + $item = $this->quote_ident($f_array[0]); + + // Simple key value, or an operator + $item .= (count($f_array) === 1) ? '= ?' : " {$f_array[1]} ?"; + + // Put in the query map for select statements + $this->having_map[] = array( + 'conjunction' => ( ! empty($this->having_map)) ? " {$conj} " : ' HAVING ', + 'string' => $item + ); + } + return $this; } @@ -510,28 +547,7 @@ class Query_Builder { */ public function having($key, $val=array()) { - $where = $this->_where($key, $val); - - // Create key/value placeholders - foreach($where as $f => $val) - { - // Split each key by spaces, in case there - // is an operator such as >, <, !=, etc. - $f_array = explode(' ', trim($f)); - - $item = $this->quote_ident($f_array[0]); - - // Simple key value, or an operator - $item .= (count($f_array) === 1) ? '= ?' : " {$f_array[1]} ?"; - - // Put in the query map for select statements - $this->having_map[] = array( - 'conjunction' => ( ! empty($this->having_map)) ? ' AND ' : ' HAVING ', - 'string' => $item - ); - } - - return $this; + return $this->_having($key, $val, 'AND'); } // -------------------------------------------------------------------------- @@ -545,28 +561,7 @@ class Query_Builder { */ public function or_having($key, $val=array()) { - $where = $this->_where($key, $val); - - // Create key/value placeholders - foreach($where as $f => $val) - { - // Split each key by spaces, in case there - // is an operator such as >, <, !=, etc. - $f_array = explode(' ', trim($f)); - - $item = $this->quote_ident($f_array[0]); - - // Simple key value, or an operator - $item .= (count($f_array) === 1) ? '= ?' : " {$f_array[1]} ?"; - - // Put in the query map for select statements - $this->having_map[] = array( - 'conjunction' => ( ! empty($this->having_map)) ? ' OR ' : ' HAVING ', - 'string' => $item - ); - } - - return $this; + return $this->_having($key, $val, 'OR'); } // -------------------------------------------------------------------------- @@ -606,45 +601,14 @@ class Query_Builder { // -------------------------------------------------------------------------- /** - * Simplify where_in methods - * - * @param mixed $key - * @param mixed $val - * @param string - * @param string - * @return void - */ - private function _where_in($key, $val=array(), $in='IN', $conj='AND') - { - $field = $this->quote_ident($field); - $params = array_fill(0, count($val), '?'); - - foreach($val as $v) - { - $this->values[] = $v; - } - - $string = $field . " {$in} ".implode(',', $params).') '; - - $this->query_map[] = array( - 'type' => 'where_in', - 'conjunction' => ( ! empty($this->query_map)) ? " {$conj} " : ' WHERE ', - 'string' => $string - ); - } - - // -------------------------------------------------------------------------- - - /** - * Specify condition(s) in the where clause of a query - * Note: this function works with key / value, or a - * passed array with key / value pairs + * Simplify generating where string * * @param mixed $key * @param mixed $val + * @param string $conj * @return $this */ - public function where($key, $val=array()) + private function _where_string($key, $val=array(), $conj='AND') { $where = $this->_where($key, $val); @@ -663,53 +627,74 @@ class Query_Builder { // Put in the query map for select statements $this->query_map[] = array( 'type' => 'where', - 'conjunction' => ( ! empty($this->query_map)) ? ' AND ' : ' WHERE ', + 'conjunction' => ( ! empty($this->query_map)) ? " {$conj} " : ' WHERE ', 'string' => $item ); } return $this; } + + // -------------------------------------------------------------------------- + + /** + * Simplify where_in methods + * + * @param mixed $key + * @param mixed $val + * @param string + * @param string + * @return $this + */ + private function _where_in($key, $val=array(), $in='IN', $conj='AND') + { + $key = $this->quote_ident($key); + $params = array_fill(0, count($val), '?'); + + foreach($val as $v) + { + $this->values[] = $v; + } + + $string = $key . " {$in} ".implode(',', $params).') '; + + $this->query_map[] = array( + 'type' => 'where_in', + 'conjunction' => ( ! empty($this->query_map)) ? " {$conj} " : ' WHERE ', + 'string' => $string + ); + + return $this; + } + + // -------------------------------------------------------------------------- + + /** + * Specify condition(s) in the where clause of a query + * Note: this function works with key / value, or a + * passed array with key / value pairs + * + * @param mixed $key + * @param mixed $val + * @return $this + */ + public function where($key, $val=array()) + { + return $this->_where_string($key, $val, 'AND'); + } // -------------------------------------------------------------------------- /** * Where clause prefixed with "OR" * - * @param string $field + * @param string $key * @param mixed $val * @return $this */ - public function or_where($field, $val=array()) + public function or_where($key, $val=array()) { - $where = $this->_where($field, $val); - - // Create key/value placeholders - foreach($where as $f => $val) - { - // Split each key by spaces, incase there - // is an operator such as >, <, !=, etc. - $f_array = explode(' ', trim($f)); - - // Simple key = val - if (count($f_array) === 1) - { - $item = $this->quote_ident($f_array[0]) . '= ?'; - } - else // Other operators - { - $item = $this->quote_ident($f_array[0]) . " {$f_array[1]} ?"; - } - - // Put in the query map for select statements - $this->query_map[] = array( - 'type' => 'where', - 'conjunction' => ( ! empty($this->query_map)) ? ' OR ' : ' WHERE ', - 'string' => $item - ); - } - - return $this; + return $this->_where_string($key, $val, 'OR'); } // -------------------------------------------------------------------------- @@ -723,8 +708,7 @@ class Query_Builder { */ public function where_in($field, $val=array()) { - $this->_where_in($field, $val); - return $this; + return $this->_where_in($field, $val); } // -------------------------------------------------------------------------- @@ -738,8 +722,7 @@ class Query_Builder { */ public function or_where_in($field, $val=array()) { - $this->_where_in($field, $val, 'IN', 'OR'); - return $this; + return $this->_where_in($field, $val, 'IN', 'OR'); } // -------------------------------------------------------------------------- @@ -753,8 +736,7 @@ class Query_Builder { */ public function where_not_in($field, $val=array()) { - $this->_where_in($field, $val, 'NOT IN', 'AND'); - return $this; + return $this->_where_in($field, $val, 'NOT IN', 'AND'); } // -------------------------------------------------------------------------- @@ -768,8 +750,7 @@ class Query_Builder { */ public function or_where_not_in($field, $val=array()) { - $this->_where_in($field, $val, 'NOT IN', 'OR'); - return $this; + return $this->_where_in($field, $val, 'NOT IN', 'OR'); } // -------------------------------------------------------------------------- diff --git a/docs/classes/DB_PDO.html b/docs/classes/DB_PDO.html index d4370f2..3d6bb90 100644 --- a/docs/classes/DB_PDO.html +++ b/docs/classes/DB_PDO.html @@ -662,7 +662,7 @@ the connection/database
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/DB_Reg.html b/docs/classes/DB_Reg.html index 459a46a..a489a53 100644 --- a/docs/classes/DB_Reg.html +++ b/docs/classes/DB_Reg.html @@ -151,7 +151,7 @@ and organizes database connections

+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/DB_SQL.html b/docs/classes/DB_SQL.html index c78fe7d..aab7100 100644 --- a/docs/classes/DB_SQL.html +++ b/docs/classes/DB_SQL.html @@ -268,7 +268,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/DB_Util.html b/docs/classes/DB_Util.html index eab5393..ed09e2e 100644 --- a/docs/classes/DB_Util.html +++ b/docs/classes/DB_Util.html @@ -208,7 +208,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/Firebird.html b/docs/classes/Firebird.html index 24511bf..567c09c 100644 --- a/docs/classes/Firebird.html +++ b/docs/classes/Firebird.html @@ -812,7 +812,7 @@ the last query executed
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/Firebird_Result.html b/docs/classes/Firebird_Result.html index 87e6d7e..9200f61 100644 --- a/docs/classes/Firebird_Result.html +++ b/docs/classes/Firebird_Result.html @@ -503,7 +503,7 @@ the query
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/Firebird_SQL.html b/docs/classes/Firebird_SQL.html index 81fd6b2..256459c 100644 --- a/docs/classes/Firebird_SQL.html +++ b/docs/classes/Firebird_SQL.html @@ -296,7 +296,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/Firebird_Util.html b/docs/classes/Firebird_Util.html index 22845a1..497220d 100644 --- a/docs/classes/Firebird_Util.html +++ b/docs/classes/Firebird_Util.html @@ -211,7 +211,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/MySQL.html b/docs/classes/MySQL.html index 22a5da0..f1eca23 100644 --- a/docs/classes/MySQL.html +++ b/docs/classes/MySQL.html @@ -848,7 +848,7 @@ the connection/database
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/MySQL_SQL.html b/docs/classes/MySQL_SQL.html index e6b5e49..e704d0e 100644 --- a/docs/classes/MySQL_SQL.html +++ b/docs/classes/MySQL_SQL.html @@ -280,7 +280,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/MySQL_Util.html b/docs/classes/MySQL_Util.html index d0270fb..8222cc9 100644 --- a/docs/classes/MySQL_Util.html +++ b/docs/classes/MySQL_Util.html @@ -207,7 +207,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/ODBC.html b/docs/classes/ODBC.html index 99f33c8..bb3649d 100644 --- a/docs/classes/ODBC.html +++ b/docs/classes/ODBC.html @@ -850,7 +850,7 @@ the connection/database
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/ODBC_SQL.html b/docs/classes/ODBC_SQL.html index c2bfb9e..d0e24de 100644 --- a/docs/classes/ODBC_SQL.html +++ b/docs/classes/ODBC_SQL.html @@ -280,7 +280,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/ODBC_Util.html b/docs/classes/ODBC_Util.html index 51e3ebd..b05e146 100644 --- a/docs/classes/ODBC_Util.html +++ b/docs/classes/ODBC_Util.html @@ -202,7 +202,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/PgSQL.html b/docs/classes/PgSQL.html index a7e4e3a..6af19dc 100644 --- a/docs/classes/PgSQL.html +++ b/docs/classes/PgSQL.html @@ -850,7 +850,7 @@ the connection/database
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/PgSQL_SQL.html b/docs/classes/PgSQL_SQL.html index 4ded16b..afd51a5 100644 --- a/docs/classes/PgSQL_SQL.html +++ b/docs/classes/PgSQL_SQL.html @@ -296,7 +296,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/PgSQL_Util.html b/docs/classes/PgSQL_Util.html index ee2a6c6..f6a99ee 100644 --- a/docs/classes/PgSQL_Util.html +++ b/docs/classes/PgSQL_Util.html @@ -207,7 +207,7 @@
+ generated on 2012-05-01T13:44:57-04:00.
diff --git a/docs/classes/Query_Builder.html b/docs/classes/Query_Builder.html index e8e3d66..8d48dba 100644 --- a/docs/classes/Query_Builder.html +++ b/docs/classes/Query_Builder.html @@ -107,11 +107,13 @@ passed array with key / value pairs
where()
  • WHERE NOT IN (FOO) clause
    where_not_in()
  • String together the sql statements for sending to the db
    _compile()
  • +
  • Simplify building having clauses
    _having()
  • Simplify 'like' methods
    _like()
  • Clear out the class variables, so the next query can be run
    _reset()
  • Method to simplify select_ methods
    _select()
  • Do all the repeditive stuff for where/having type methods
    _where()
  • Simplify where_in methods
    _where_in()
  • +
  • Simplify generating where string
    _where_string()
  • Convenience property for connection management
    $conn_name
  • @@ -618,7 +620,7 @@ prefixed with 'OR NOT'

    Where clause prefixed with "OR"

    -
    or_where(string $field, mixed $val) : \Query_Builder
    +
    or_where(string $key, mixed $val) : \Query_Builder

    @@ -628,7 +630,7 @@ prefixed with 'OR NOT'

    Parameters

    -

    $field

    +

    $key

    string
    @@ -951,12 +953,43 @@ passed array with key / value pairs
    \$string
    -
    -

    Simplify 'like' methods

    -
    _like(string $field, mixed $val, string $pos, string $like, string $conj) 
    +
    +

    Simplify building having clauses

    +
    _having(mixed $key, mixed $val, string $conj) : \Query_Builder

    + + + +
    fluentThis method is part of a fluent interface and will return the same instance
    +

    Parameters

    +
    +

    $key

    +mixed +
    +
    +

    $val

    +mixed +
    +
    +

    $conj

    +string +
    +

    Returns

    + +
    +
    +
    +

    Simplify 'like' methods

    +
    _like(string $field, mixed $val, string $pos, string $like, string $conj) : \Query_Builder
    +
    +
    +

    + + + +
    fluentThis method is part of a fluent interface and will return the same instance

    Parameters

    $field

    @@ -978,6 +1011,8 @@ passed array with key / value pairs

    $conj

    string
    +

    Returns

    +
    @@ -1026,10 +1061,14 @@ passed array with key / value pairs

    Simplify where_in methods

    -
    _where_in(mixed $key, mixed $val, $in, $conj) : void
    +
    _where_in(mixed $key, mixed $val, $in, $conj) : \Query_Builder

    + + + +
    fluentThis method is part of a fluent interface and will return the same instance

    Parameters

    $key

    @@ -1045,6 +1084,35 @@ passed array with key / value pairs

    $conj

    string

    +

    Returns

    + +
    +
    +
    +

    Simplify generating where string

    +
    _where_string(mixed $key, mixed $val, string $conj) : \Query_Builder
    +
    +
    +

    + + + +
    fluentThis method is part of a fluent interface and will return the same instance
    +

    Parameters

    +
    +

    $key

    +mixed +
    +
    +

    $val

    +mixed +
    +
    +

    $conj

    +string +
    +

    Returns

    +

    @@ -1153,7 +1221,7 @@ for complex select queries

    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/classes/SQLite.html b/docs/classes/SQLite.html index 8670f59..a3ab83f 100644 --- a/docs/classes/SQLite.html +++ b/docs/classes/SQLite.html @@ -865,7 +865,7 @@ method if the database does not support 'TRUNCATE';
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/classes/SQLite_SQL.html b/docs/classes/SQLite_SQL.html index 62e0779..a80f168 100644 --- a/docs/classes/SQLite_SQL.html +++ b/docs/classes/SQLite_SQL.html @@ -280,7 +280,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/classes/SQLite_Util.html b/docs/classes/SQLite_Util.html index cc3e3a4..cfd3c4b 100644 --- a/docs/classes/SQLite_Util.html +++ b/docs/classes/SQLite_Util.html @@ -207,7 +207,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/classes/Settings.html b/docs/classes/Settings.html index 7599ff4..7d7e82c 100644 --- a/docs/classes/Settings.html +++ b/docs/classes/Settings.html @@ -243,7 +243,7 @@ directly - the settings should be safe!
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/deprecated.html b/docs/deprecated.html index 1da18d5..34eb10d 100644 --- a/docs/deprecated.html +++ b/docs/deprecated.html @@ -66,7 +66,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/errors.html b/docs/errors.html index c8f5187..f967f08 100644 --- a/docs/errors.html +++ b/docs/errors.html @@ -92,7 +92,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/graph_class.html b/docs/graph_class.html index 411da74..de66ec0 100644 --- a/docs/graph_class.html +++ b/docs/graph_class.html @@ -63,7 +63,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/markers.html b/docs/markers.html index d5a5acc..9ddeb0e 100644 --- a/docs/markers.html +++ b/docs/markers.html @@ -68,7 +68,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/namespaces/default.html b/docs/namespaces/default.html index ce06727..51faf27 100644 --- a/docs/namespaces/default.html +++ b/docs/namespaces/default.html @@ -282,7 +282,7 @@ instantiates the specific db driver

    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/packages/.html b/docs/packages/.html index df037ed..7149853 100644 --- a/docs/packages/.html +++ b/docs/packages/.html @@ -66,7 +66,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/packages/Default.html b/docs/packages/Default.html index b9416b2..5f6a1b5 100644 --- a/docs/packages/Default.html +++ b/docs/packages/Default.html @@ -93,7 +93,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/packages/Query.Drivers.html b/docs/packages/Query.Drivers.html index 87a898b..66810fa 100644 --- a/docs/packages/Query.Drivers.html +++ b/docs/packages/Query.Drivers.html @@ -210,7 +210,7 @@ data-fetching methods

    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/packages/Query.Helper Classes.html b/docs/packages/Query.Helper Classes.html index a557f2c..7b8b6a5 100644 --- a/docs/packages/Query.Helper Classes.html +++ b/docs/packages/Query.Helper Classes.html @@ -96,7 +96,7 @@
    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/packages/Query.Query.html b/docs/packages/Query.Query.html index c546f70..8685f36 100644 --- a/docs/packages/Query.Query.html +++ b/docs/packages/Query.Query.html @@ -114,7 +114,7 @@ instantiates the specific db driver

    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/packages/Query.html b/docs/packages/Query.html index 22a7e1a..5a7101e 100644 --- a/docs/packages/Query.html +++ b/docs/packages/Query.html @@ -315,7 +315,7 @@ instantiates the specific db driver

    + generated on 2012-05-01T13:44:57-04:00.
    diff --git a/docs/structure.xml b/docs/structure.xml index 1e35815..8a1a61b 100644 --- a/docs/structure.xml +++ b/docs/structure.xml @@ -934,7 +934,7 @@ the connection/database]]> - + Free Query Builder / Database Abstraction Layer

    ]]>
    @@ -1327,7 +1327,7 @@ for complex select queries]]> - + _like function @@ -1348,133 +1348,136 @@ for complex select queries]]> string + + \$this + - + $field - + $val - + $pos - + $like - + $conj - + like function - + - + string - + mixed - + string - + \$this - + $field - + $val - + $pos - + or_like function - + - + string - + mixed - + string - + \$this - + $field - + $val - + $pos - + not_like function - + - + string - + mixed - + string - + \$this - + $field - + $val - + $pos @@ -1515,725 +1518,795 @@ for complex select queries]]> - - having + + _having function - - + + - + mixed - + mixed - + + string + + \$this - + $key - + $val - - - or_having - function - - - - - mixed - - - mixed - - - \$this - - - - $key - - - - - $val - - - - - - _where - function - - - - - mixed - - - mixed - - - array - - - - $key - - - - - $val - - - - - - _where_in - function - - - - - mixed - - - mixed - - - - - void - - - - $key - - - - - $val - - - - - $in - - - - + $conj - + + having + function + + + + + mixed + + + mixed + + + \$this + + + + $key + + + + + $val + + + + + + or_having + function + + + + + mixed + + + mixed + + + \$this + + + + $key + + + + + $val + + + + + + _where + function + + + + + mixed + + + mixed + + + array + + + + $key + + + + + $val + + + + + + _where_string + function + + + + + mixed + + + mixed + + + string + + + \$this + + + + $key + + + + + $val + + + + + $conj + + + + + + _where_in + function + + + + + mixed + + + mixed + + + + + \$this + + + + $key + + + + + $val + + + + + $in + + + + + $conj + + + + + where function - + - + mixed - + mixed - + \$this - + $key - + $val - + or_where function - + - + string - + mixed - + \$this - - $field - - - - - $val - - - - - - where_in - function - - - - - mixed - - - mixed - - - \$this - - - - $field - - - - - $val - - - - - - or_where_in - function - - - - - string - - - mixed - - - \$this - - - - $field - - - - - $val - - - - - - where_not_in - function - - - - - string - - - mixed - - - \$this - - - - $field - - - - - $val - - - - - - or_where_not_in - function - - - - - string - - - mixed - - - \$this - - - - $field - - - - - $val - - - - - - set - function - - - - - mixed - - - mixed - - - \$this - - - + $key - + + $val + + + + + + where_in + function + + + + + mixed + + + mixed + + + \$this + + + + $field + + + + + $val + + + + + + or_where_in + function + + + + + string + + + mixed + + + \$this + + + + $field + + + + + $val + + + + + + where_not_in + function + + + + + string + + + mixed + + + \$this + + + + $field + + + + + $val + + + + + + or_where_not_in + function + + + + + string + + + mixed + + + \$this + + + + $field + + + + + $val + + + + + + set + function + + + + + mixed + + + mixed + + + \$this + + + + $key + + + + $val - + join function - + - + string - + string - + string - + \$this - + $table - + $condition - + $type - + group_by function - + - + mixed - + \$this - + $field - + order_by function - + - + string - + string - + \$this - + $field - + $type - + limit function - + - + int - + int - + string - + $limit - + $offset - + group_start function - + - + + \$this + + + + + or_group_start + function + + + + \$this - or_group_start + or_not_group_start function +prefixed with 'OR NOT']]> \$this - - or_not_group_start + + group_end function - + \$this - - group_end - function - - - - - \$this - - - - + get function - + - - + + int - + int - + object - + $table - + $limit - + $offset - + get_where function - + - + string - + array - + int - + int - + object - + $table - + $where - + $limit - + $offset - + count_all function - + - + string - + int - + $table - + count_all_results function - + - + string - + int - + $table - + insert function - + - + string - + mixed - + mixed - + $table - + $data - + update function - + - + string - + mixed - + mixed - + $table - + $data - + delete function - + - + string - + mixed - + mixed - + $table - + $where - + __call function - + - + string - + array - + mixed - + $name - + $params - + _reset function - + - + _compile function - + - + string - + string - + \$string - + $type - + $table diff --git a/tests/db_files/FB_TEST_DB.FDB b/tests/db_files/FB_TEST_DB.FDB index 3dee996..977faa7 100644 Binary files a/tests/db_files/FB_TEST_DB.FDB and b/tests/db_files/FB_TEST_DB.FDB differ