Function __global->_report_content
Definitions
sources/report_content.php
- The shared backend to report content/posts.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | The content type being reported |
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | The content ID being reported |
| $report_title | string | No | No | required parameter | N/A | N/A | Report title |
| $report_post | string | No | No | required parameter | N/A | N/A | Report post |
| $anonymous | BINARY | No | No | 0 | N/A | N/A | Anonymous |
| $open | BINARY | No | No | 1 | N/A | N/A | Report is open |
| $time | ?TIME | No | No | Null | N/A | N/A | Report time (null: now) |
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Reporting member (null: current member) |
Returns
- URL to content
- Type: object
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* The shared backend to report content/posts.
*
* @param ID_TEXT $content_type The content type being reported
* @param ID_TEXT $content_id The content ID being reported
* @param string $report_title Report title
* @param string $report_post Report post
* @param BINARY $anonymous Anonymous
* @param BINARY $open Report is open
* @param ?TIME $time Report time (null: now)
* @param ?MEMBER $member_id Reporting member (null: current member)
* @return object URL to content
*/
function _report_content(string $content_type, string $content_id, string $report_title, string $report_post, int $anonymous = 0, int $open = 1, ?int $time = null, ?int $member_id = null) : object
* The shared backend to report content/posts.
*
* @param ID_TEXT $content_type The content type being reported
* @param ID_TEXT $content_id The content ID being reported
* @param string $report_title Report title
* @param string $report_post Report post
* @param BINARY $anonymous Anonymous
* @param BINARY $open Report is open
* @param ?TIME $time Report time (null: now)
* @param ?MEMBER $member_id Reporting member (null: current member)
* @return object URL to content
*/
function _report_content(string $content_type, string $content_id, string $report_title, string $report_post, int $anonymous = 0, int $open = 1, ?int $time = null, ?int $member_id = null) : object

