Function __global->report_post
Definitions
sources/report_content.php
- The actualiser to report a post.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $post_id | AUTO_LINK | No | No | required parameter | N/A | N/A | Post ID being reported |
| $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 actualiser to report a post.
*
* @param AUTO_LINK $post_id Post ID being reported
* @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_post(int $post_id, string $report_post, int $anonymous = 0, int $open = 1, ?int $time = null, ?int $member_id = null) : object
* The actualiser to report a post.
*
* @param AUTO_LINK $post_id Post ID being reported
* @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_post(int $post_id, string $report_post, int $anonymous = 0, int $open = 1, ?int $time = null, ?int $member_id = null) : object

