Function DatabaseConnector->_get_where_expand
Definitions
sources/database.php
- Create a SELECT query from some abstract data.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$table | string | No | No | required parameter | N/A | N/A | The table to select from |
$select_map | ?array | No | No | Null | N/A | N/A | List of field selections (null: all fields) |
$where_map | array | No | No | [] | N/A | N/A | Map of conditions to enforce |
$end | string | No | No | Blank (empty string) | N/A | N/A | Additional stuff to tack onto the query |
Returns
- SQL query
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Create a SELECT query from some abstract data.
*
* @param string $table The table to select from
* @param ?array $select_map List of field selections (null: all fields)
* @param array $where_map Map of conditions to enforce
* @param string $end Additional stuff to tack onto the query
* @return string SQL query
*/
protected function _get_where_expand(string $table, ?array $select_map = null, array $where_map = [], string $end = '') : string
* Create a SELECT query from some abstract data.
*
* @param string $table The table to select from
* @param ?array $select_map List of field selections (null: all fields)
* @param array $where_map Map of conditions to enforce
* @param string $end Additional stuff to tack onto the query
* @return string SQL query
*/
protected function _get_where_expand(string $table, ?array $select_map = null, array $where_map = [], string $end = '') : string