Magic method to capture calls to undefined static class methods.
In this case we are attempting to convert camel case formatted
methods into underscore formatted methods.
This allows us to call ORM methods using camel case and remain
backwards compatible.
@param string $name
@param array $arguments
@return ORM Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2279
Detect and initialise the limit clause style ("SELECT TOP 5" /
"... LIMIT 5"). If this has been specified manually using
ORM::configure('limit_clause_style', 'top'), this will do nothing.
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:390
Pass configuration settings to the class in the form of
key/value pairs. As a shortcut, if the second argument
is omitted and the key is a string, the setting is
assumed to be the DSN string used by PDO to connect
to the database (often, this will be the only configuration
required to use Idiorm). If you have more than one setting
you wish to configure, another shortcut is to pass an array
of settings (and omit the second argument).
@param string $key
@param mixed $value
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:260
Despite its slightly odd name, this is actually the factory
method used to acquire instances of the class. It is named
this way for the sake of a readable interface, ie
ORM::for_table('table_name')->find_one()-> etc. As such,
this will normally be the first method called in a chain.
@param string $table_name
@param string $connection_name Which connection to use
@return ORM Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:310
Retrieve configuration options by key, or as whole array.
@param string $key
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:285
→public static get_connection_names() -> array
Get a list of the available connection names
@return array Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:611
Returns the PDO instance used by the the ORM to communicate with
the database. This can be called if any low-level DB access is
required outside the class. If multiple connections are used,
accepts an optional key name for the connection.
@param string $connection_name Which connection to use
@return PDO Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:445
Get the last query executed. Only works if the
'logging' config option is set to true. Otherwise
this will return null. Returns last query from all connections if
no connection_name is specified
@param null|string $connection_name Which connection to use
@return string Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:582
Returns the PDOStatement instance last used by any connection wrapped by the ORM.
Useful for access to PDOStatement::rowCount() or error information
@return PDOStatement Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:471
Get an array containing all the queries run on a
specified connection up to now.
Only works if the 'logging' config option is
set to true. Otherwise, returned array will be empty.
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:600
Executes a raw query as a wrapper for PDOStatement::execute.
Useful for queries that can't be accomplished through Idiorm,
particularly those using engine-specific features.
@example raw_execute('SELECT `name`, AVG(`order`) FROM `customer` GROUP BY `name` HAVING AVG(`order`) > 10')
@example raw_execute('INSERT OR REPLACE INTO `widget` (`id`, `name`) SELECT `id`, `name` FROM `other_table`')
@param string $query The raw SQL query
@param array $parameters Optional bound parameters
@param string $connection_name Which connection to use
@return bool Success Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:461
→public static reset_config()
Delete all configs in _config array. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:296
→public static reset_db()
Delete all registered PDO objects in _db array. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:366
Set the PDO object used by Idiorm to communicate with the database.
This is public in case the ORM should use a ready-instantiated
PDO object as its database connection. Accepts an optional string key
to identify the connection if multiple connections are used.
@param PDO $db
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:354
→public __call($name, $arguments) -> ORM
Magic method to capture calls to undefined class methods.
In this case we are attempting to convert camel case formatted
methods into underscore formatted methods.
This allows us to call ORM methods using camel case and remain
backwards compatible.
@param string $name
@param array $arguments
@return ORM Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2256
→public __get($key)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2227
→public __isset($key)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2240
→public __set($key, $value)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2231
→public __unset($key)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2235
Add a WHERE clause with multiple values (like IN and NOT IN) Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1165
→public as_array()
Return the raw data wrapped by this ORM
instance as an associative array. Column
names may optionally be supplied as arguments,
if so, only those keys will be returned. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1932
→public avg($column)
Tell the ORM that you wish to execute a AVG query.
Will return the average value of the choosen column. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:769
→public count($column = *)
Tell the ORM that you wish to execute a COUNT query.
Will return an integer representing the number of
rows returned. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:745
→public count_null_id_columns()
Counts the number of columns that belong to the primary
key and their value is null. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:878
→public create($data = NULL)
Create a new, empty instance of the class. Used
to add a new row to your database. May optionally
be passed an associative array of data to populate
the instance. If so, all fields will be flagged as
dirty so all will be saved to the database when
save() is called. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:639
→public delete()
Delete this record from the database Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2176
→public delete_many()
Delete many records from the database Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2188
→public distinct()
Add a DISTINCT keyword before the list of columns in the SELECT query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:993
→public find_array() -> array
Tell the ORM that you are expecting multiple results
from your query, and execute it. Will return an array,
or an empty array if no rows were returned.
@return array Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:736
→public find_many() -> array|\IdiormResultSet
Tell the ORM that you are expecting multiple results
from your query, and execute it. Will return an array
of instances of the ORM class, or an empty array if
no rows were returned.
@return array|\IdiormResultSet Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:701
→public find_one($id = NULL)
Tell the ORM that you are expecting a single result
back from your query, and execute it. Will return
a single instance of the ORM class, or false if no
rows were returned.
As a shortcut, you may supply an ID as a parameter
to this method. This will perform a primary key
lookup on the table. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:680
→public find_result_set() -> \IdiormResultSet
Tell the ORM that you are expecting multiple results
from your query, and execute it. Will return a result set object
containing instances of the ORM class.
@return \IdiormResultSet Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:726
→public force_all_dirty()
Force the ORM to flag all the fields in the $data array
as "dirty" and therefore update them when save() is called. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:828
Add an FULL OUTER JOIN souce to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1099
→public get($key)
Return the value of a property of this object (database row)
or null if not present.
If a column-names array is passed, it will return a associative array
with the value of each column or null if it is not present. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1947
→public group_by($column_name)
Add a column to the list of columns to GROUP BY Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1500
→public group_by_expr($expr)
Add an unquoted expression to the list of columns to GROUP BY Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1509
→public having($column_name, $value = NULL)
Add a HAVING column = value clause to your query. Each time
this is called in the chain, an additional HAVING will be
added, and these will be ANDed together when the final query
is built.
If you use an array in $column_name, a new clause will be
added for each element. In this case, $value is ignored. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1523
→public having_equal($column_name, $value = NULL)
More explicitly named version of for the having() method.
Can be used if preferred. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1531
→public having_gt($column_name, $value = NULL)
Add a HAVING ... > clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1571
→public having_gte($column_name, $value = NULL)
Add a HAVING ... >= clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1585
→public having_id_is($id)
Special method to query the table by its primary key.
If primary key is compound, only the columns that
belong to they key will be used for the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1548
→public having_in($column_name, $values = NULL)
Add a HAVING ... IN clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1599
→public having_like($column_name, $value = NULL)
Add a HAVING ... LIKE clause to your query. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1557
→public having_lt($column_name, $value = NULL)
Add a HAVING ... < clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1578
→public having_lte($column_name, $value = NULL)
Add a HAVING ... <= clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1592
Add a raw HAVING clause to the query. The clause should
contain question mark placeholders, which will be bound
to the parameters supplied in the second argument. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1629
→public hydrate($data = array())
This method can be called to hydrate (populate) this
instance of the class from an associative array of data.
This will usually be called only from inside the class,
but it's public in case you need to call it directly. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:819
→public id($disallow_null = false)
Get the primary key ID of this object. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1976
Add a LEFT OUTER JOIN souce to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1085
→public limit($limit)
Add a LIMIT to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1453
→public max($column)
Tell the ORM that you wish to execute a MAX query.
Will return the max value of the choosen column. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:753
→public min($column)
Tell the ORM that you wish to execute a MIN query.
Will return the min value of the choosen column. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:761
→public offset($offset)
Add an OFFSET to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1461
→public offsetExists($key)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2204
→public offsetGet($key)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2208
→public offsetSet($key, $value)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2212
→public offsetUnset($key)
Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2219
→public order_by_asc($column_name)
Add an ORDER BY column ASC clause Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1485
→public order_by_desc($column_name)
Add an ORDER BY column DESC clause Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1478
→public order_by_expr($clause)
Add an unquoted expression as an ORDER BY clause Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1492
Add a RAW JOIN source to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1047
→public raw_query($query, $parameters = array())
Perform a raw query. The query can contain placeholders in
either named or question mark style. If placeholders are
used, the parameters should be an array of values which will
be bound to the placeholders in the query. If this method
is called, all other query building methods will be ignored. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:840
Add an RIGHT OUTER JOIN souce to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1092
→public save()
Save any fields which have been modified on this object
to the database. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2060
→public select($column, $alias = NULL)
Add a column to the list of columns returned by the SELECT
query. This defaults to '*'. The second optional argument is
the alias to return the column as. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:891
→public select_expr($expr, $alias = NULL)
Add an unquoted expression to the list of columns returned
by the SELECT query. The second optional argument is
the alias to return the column as. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:901
→public select_many() -> \ORM
Add columns to the list of columns returned by the SELECT
query. This defaults to '*'. Many columns can be supplied
as either an array or as a list of parameters to the method.
Note that the alias must not be numeric - if you want a
numeric alias then prepend it with some alpha chars. eg. a1
@example select_many(array('alias' => 'column', 'column2', 'alias2' => 'column3'), 'column4', 'column5');
@example select_many('column', 'column2', 'column3');
@example select_many(array('column', 'column2', 'column3'), 'column4', 'column5');
@return \ORM Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:919
→public select_many_expr() -> \ORM
Add an unquoted expression to the list of columns returned
by the SELECT query. Many columns can be supplied as either
an array or as a list of parameters to the method.
Note that the alias must not be numeric - if you want a
numeric alias then prepend it with some alpha chars. eg. a1
@example select_many_expr(array('alias' => 'column', 'column2', 'alias2' => 'column3'), 'column4', 'column5')
@example select_many_expr('column', 'column2', 'column3')
@example select_many_expr(array('column', 'column2', 'column3'), 'column4', 'column5')
@return \ORM Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:947
→public set($key, $value = NULL)
Set a property to a particular value on this object.
To set multiple properties at once, pass an associative array
as the first parameter and leave out the second parameter.
Flags the properties as 'dirty' so they will be saved to the
database when save() is called. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2001
→public set_expr($key, $value = NULL)
Set a property to a particular value on this object.
To set multiple properties at once, pass an associative array
as the first parameter and leave out the second parameter.
Flags the properties as 'dirty' so they will be saved to the
database when save() is called.
@param string|array $key
@param string|null $value Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2014
→public sum($column)
Tell the ORM that you wish to execute a SUM query.
Will return the sum of the choosen column. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:777
→public table_alias($alias)
Add an alias for the main table to be used in SELECT queries Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:850
→public use_id_column($id_column)
Specify the ID column to use for this instance or array of instances only.
This overrides the id_column and id_column_overrides settings.
This is mostly useful for libraries built on top of Idiorm, and will
not normally be used in manually built queries. If you don't know why
you would want to use this, you should probably just ignore it. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:655
→public where($column_name, $value = NULL)
Add a WHERE column = value clause to your query. Each time
this is called in the chain, an additional WHERE will be
added, and these will be ANDed together when the final query
is built.
If you use an array in $column_name, a new clause will be
added for each element. In this case, $value is ignored. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1291
→public where_any_is($values, $operator = =)
Allows adding a WHERE clause that matches any of the conditions
specified in the array. Each element in the associative array will
be a different condition, where the key will be the column name.
By default, an equal operator will be used against all columns, but
it can be overriden for any or every column using the second parameter.
Each condition will be ORed together when added to the final query. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1332
→public where_equal($column_name, $value = NULL)
More explicitly named version of for the where() method.
Can be used if preferred. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1299
→public where_gt($column_name, $value = NULL)
Add a WHERE ... > clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1388
→public where_gte($column_name, $value = NULL)
Add a WHERE ... >= clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1402
→public where_id_in($ids)
Similar to where_id_is() but allowing multiple primary keys.
If primary key is compound, only the columns that
belong to they key will be used for the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1365
→public where_id_is($id)
Special method to query the table by its primary key
If primary key is compound, only the columns that
belong to they key will be used for the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1316
→public where_in($column_name, $values)
Add a WHERE ... IN clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1416
→public where_like($column_name, $value = NULL)
Add a WHERE ... LIKE clause to your query. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1374
→public where_lt($column_name, $value = NULL)
Add a WHERE ... < clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1395
→public where_lte($column_name, $value = NULL)
Add a WHERE ... <= clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1409
Add where WHERE ... NOT LIKE clause to your query. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1381
→public where_not_null($column_name)
Add a WHERE column IS NOT NULL clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1437
→public where_null($column_name)
Add a WHERE column IS NULL clause to your query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1430
→public where_raw($clause, $parameters = array())
Add a raw WHERE clause to the query. The clause should
contain question mark placeholders, which will be bound
to the parameters supplied in the second argument. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1446
Check the query cache for the given cache key. If a value
is cached for the key, return the value. Otherwise, return false. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1858
Return the correct character used to quote identifiers (table
names, column names etc) by looking at the driver being used by PDO.
@param string $connection_name Which connection to use
@return string Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:403
Returns a constant after determining the appropriate limit clause
style
@param string $connection_name Which connection to use
@return string Limit clause style keyword/constant Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:426
Internal helper method for executing statments. Logs queries, and
stores statement object in ::_last_statment, accessible publicly
through ::get_last_statement()
@param string $query
@param array $parameters An array of parameters to be bound in to the query
@param string $connection_name Which connection to use
@return bool Response of PDOStatement::execute() Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:484
Add a query to the internal query log. Only works if the
'logging' config option is set to true.
This works by manually binding the parameters to the query - the
query isn't executed like this (PDO normally passes the query and
parameters to the database which takes care of the binding) but
doing it this way makes the logged queries more readable.
@param string $query
@param array $parameters An array of parameters to be bound in to the query
@param string $connection_name Which connection to use
@param float $query_time Query time
@return bool Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:523
Set up the database connection used by the class
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:319
Ensures configuration (multiple connections) is at least set to default.
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:340
Detect and initialise the character used to quote identifiers
(table names, column names etc). If this has been specified
manually using ORM::configure('identifier_quote_character', 'some-char'),
this will do nothing.
@param string $connection_name Which connection to use Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:377
"Private" constructor; shouldn't be called directly.
Use the ORM::for_table factory method instead. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:623
Internal method to add a JOIN source to the query.
The join_operator should be one of INNER, LEFT OUTER, CROSS etc - this
will be prepended to JOIN.
The table should be the name of the table to join to.
The constraint may be either a string or an array with three elements. If it
is a string, it will be compiled into the query as-is, with no escaping. The
recommended way to supply the constraint is as an array with three elements:
first_column, operator, second_column
Example: array('user.id', '=', 'profile.user_id')
will compile to
ON `user`.`id` = `profile`.`user_id`
The final (optional) argument specifies an alias for the joined table. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1020
→protected _add_order_by($column_name, $ordering)
Add an ORDER BY clause to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1469
Internal method to add an unquoted expression to the set
of columns returned by the SELECT query. The second optional
argument is the alias to return the expression as. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:860
Helper method to compile a simple COLUMN SEPARATOR VALUE
style HAVING or WHERE condition into a string and value ready to
be passed to the _add_condition method. Avoids duplication
of the call to _quote_identifier
If column_name is an associative array, it will add a condition for each column Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1216
Internal method to add a WHERE condition to the query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1151
→protected _build_conditions($type) -> string
Build a WHERE or HAVING clause
@param string $type
@return string Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1723
→protected _build_group_by()
Build GROUP BY Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1711
→protected _build_having()
Build the HAVING clause(s) Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1704
→protected _build_insert()
Build an INSERT query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2156
→protected _build_join()
Build the JOIN sources Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1686
→protected _build_limit()
Build LIMIT Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1752
→protected _build_offset()
Build OFFSET Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1769
→protected _build_order_by()
Build ORDER BY Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1742
→protected _build_select()
Build a SELECT statement based on the clauses that have
been passed to this instance by chaining method calls. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1637
→protected _build_select_start()
Build the start of the SELECT statement Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1662
→protected _build_update()
Build an UPDATE query Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2137
→protected _build_where()
Build the WHERE clause(s) Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1697
→protected _call_aggregate_db_function($sql_function, $column) -> int
Execute an aggregate query on the current connection.
@param string $sql_function The aggregate function to call eg. MIN, COUNT, etc
@param string $column The column to execute the aggregate query against
@return int Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:787
→protected _create_instance_from_row($row)
Create an ORM instance from the given row (an associative
array of data fetched from the database) Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:664
→protected _create_placeholders($fields)
Return a string containing the given number of question marks,
separated by commas. Eg "?, ?, ?" Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1240
→protected _find_many() -> array
Tell the ORM that you are expecting multiple results
from your query, and execute it. Will return an array
of instances of the ORM class, or an empty array if
no rows were returned.
@return array Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:715
→protected _get_compound_id_column_values($value)
Helper method that filters a column/value array returning only those
columns that belong to a compound primary key.
If the key contains a column that does not exist in the given array,
a null value will be returned for it. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1262
Helper method that filters an array containing compound column/value
arrays. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1274
→protected _get_id_column_name()
Return the name of the column in the database table which contains
the primary key ID of the row. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1963
→protected _join_if_not_empty($glue, $pieces)
Wrapper around PHP's join function which
only adds the pieces if they are not empty. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1784
Take a column specification for the select many methods and convert it
into a normalised array of columns and aliases.
It is designed to turn the following styles into a normalised array:
array(array('alias' => 'column', 'column2', 'alias2' => 'column3'), 'column4', 'column5'))
@param array $columns
@return array Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:972
→protected _quote_identifier($identifier)
Quote a string that is used as an identifier
(table names, column names etc) or an array containing
multiple identifiers. This method can also deal with
dot-separated identifiers eg table.column Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1814
→protected _quote_identifier_part($part)
This method performs the actual quoting of a single
part of an identifier, using the identifier quote
character specified in the config (or autodetected). Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1828
→protected _quote_one_identifier($identifier)
Quote a string that is used as an identifier
(table names, column names etc). This method can
also deal with dot-separated identifiers eg table.column Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1802
→protected _run()
Execute the SELECT query that has been built up by chaining methods
on this class. Return an array of rows as associative arrays. Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:1893
Set a property on the ORM object.
@param string|array $key
@param string|null $value
@param bool $raw Whether this value should be treated as raw or not Defined in <ROOT>/include/vendor/j4mie/idiorm/idiorm.php:2024
→protected $_default_config :: array(14)
*DEPTH TOO GREAT*
→protected $_config :: array(1)
*DEPTH TOO GREAT*
→protected $_db :: array(1)
*DEPTH TOO GREAT*
→protected $_last_query :: string(101) "SELECT * FROM `configs` WHERE (`code` = '' OR `code` = 'pl_pl' OR `code` IS NULL…"
SELECT * FROM `configs` WHERE (`code` = '' OR `code` = 'pl_pl' OR `code` IS NULL) ORDER BY `sort` ASC