Function __global->append_content_select_for_fields
Definitions
sources/content.php
- Fill up a SELECT clause with actual fields needed to select particular meta-fields.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
&$select | array | Yes | No | required parameter | N/A | N/A | The ID |
$cma_info | array | No | No | required parameter | N/A | N/A | The info array for the content type |
$fields | array | No | No | required parameter | id parent_category category title description image views order submitter author add_time edit_time date validated video | N/A | The list of the standardised field names from hooks |
$table_alias | ?string | No | No | Null | N/A | N/A | The table alias (null: none) |
Preview
Code (PHP)
/**
* Fill up a SELECT clause with actual fields needed to select particular meta-fields.
*
* @param array $select The ID
* @param array $cma_info The info array for the content type
* @param array $fields The list of the standardised field names from hooks
* @set id parent_category category title description image views order submitter author add_time edit_time date validated video
* @param ?string $table_alias The table alias (null: none)
*/
function append_content_select_for_fields(array &$select, array $cma_info, array $fields, ?string $table_alias = null)
* Fill up a SELECT clause with actual fields needed to select particular meta-fields.
*
* @param array $select The ID
* @param array $cma_info The info array for the content type
* @param array $fields The list of the standardised field names from hooks
* @set id parent_category category title description image views order submitter author add_time edit_time date validated video
* @param ?string $table_alias The table alias (null: none)
*/
function append_content_select_for_fields(array &$select, array $cma_info, array $fields, ?string $table_alias = null)