Function DatabaseConnector->_automatic_lang_fields
Definitions
sources/database.php
- Work out $lang_fields from analysing the table, if needed.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
&$table | string | Yes | No | required parameter | N/A | N/A | The table name |
&$full_table | string | Yes | No | required parameter | N/A | N/A | The table name, with prefix too |
&$select | array | Yes | No | required parameter | N/A | N/A | The SELECT map |
&$where_map | array | Yes | No | required parameter | N/A | N/A | The WHERE map [will all be ANDed together] |
&$end | string | Yes | No | required parameter | N/A | N/A | Something to tack onto the end of the SQL query |
&$lang_fields | ?array | Yes | No | required parameter | N/A | N/A | Extra language fields to join in for cache pre-filling / Tempcode, perhaps via the find_lang_fields function. You only need to send this if you are doing a JOIN and carefully craft your query so table field names won't conflict (null: auto-detect, if not a join) |
Preview
Code (PHP)
/**
* Work out $lang_fields from analysing the table, if needed.
*
* @param string $table The table name
* @param string $full_table The table name, with prefix too
* @param array $select The SELECT map
* @param array $where_map The WHERE map [will all be ANDed together]
* @param string $end Something to tack onto the end of the SQL query
* @param ?array $lang_fields Extra language fields to join in for cache pre-filling / Tempcode, perhaps via the find_lang_fields function. You only need to send this if you are doing a JOIN and carefully craft your query so table field names won't conflict (null: auto-detect, if not a join)
*/
protected function _automatic_lang_fields(string &$table, string &$full_table, array &$select, array &$where_map, string &$end, ?array &$lang_fields)
* Work out $lang_fields from analysing the table, if needed.
*
* @param string $table The table name
* @param string $full_table The table name, with prefix too
* @param array $select The SELECT map
* @param array $where_map The WHERE map [will all be ANDed together]
* @param string $end Something to tack onto the end of the SQL query
* @param ?array $lang_fields Extra language fields to join in for cache pre-filling / Tempcode, perhaps via the find_lang_fields function. You only need to send this if you are doing a JOIN and carefully craft your query so table field names won't conflict (null: auto-detect, if not a join)
*/
protected function _automatic_lang_fields(string &$table, string &$full_table, array &$select, array &$where_map, string &$end, ?array &$lang_fields)