Function __global->content_review_get_fields
Definitions
sources/content_reviews2.php
- Get a form to control how some content should be reviewed.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $may_delete | boolean | No | No | required parameter | N/A | N/A | Whether to present a delete option for the action |
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | The content type |
| $content_id | ?ID_TEXT | No | No | Null | N/A | N/A | The content ID (null: not added yet) |
| $catalogue_name | ?ID_TEXT | No | No | Null | N/A | N/A | The catalogue name where to grab default settings from (null: content type has no bound catalogue / try and auto-detect) |
Returns
- The fields
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a form to control how some content should be reviewed.
*
* @param boolean $may_delete Whether to present a delete option for the action
* @param ID_TEXT $content_type The content type
* @param ?ID_TEXT $content_id The content ID (null: not added yet)
* @param ?ID_TEXT $catalogue_name The catalogue name where to grab default settings from (null: content type has no bound catalogue / try and auto-detect)
* @return Tempcode The fields
*/
function content_review_get_fields(bool $may_delete, string $content_type, ?string $content_id = null, ?string $catalogue_name = null) : object
* Get a form to control how some content should be reviewed.
*
* @param boolean $may_delete Whether to present a delete option for the action
* @param ID_TEXT $content_type The content type
* @param ?ID_TEXT $content_id The content ID (null: not added yet)
* @param ?ID_TEXT $catalogue_name The catalogue name where to grab default settings from (null: content type has no bound catalogue / try and auto-detect)
* @return Tempcode The fields
*/
function content_review_get_fields(bool $may_delete, string $content_type, ?string $content_id = null, ?string $catalogue_name = null) : object
