Function __global->report_post_form

Definitions

sources/report_content.php

  • The UI 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
$title Tempcode No No required parameter N/A N/A Screen title
$post_id AUTO_LINK No No required parameter N/A N/A The post ID
$js_function_calls array No No required parameter N/A N/A JavaScript code to include
&$topic_info ?array Yes No Null N/A N/A The topic row (returned by reference) (null: initial input)
&$post_info ?array Yes No Null N/A N/A The post row (returned by reference) (null: initial input)

Returns

  • The UI
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * The UI to report a post.
 *
 * @param  Tempcode $title Screen title
 * @param  AUTO_LINK $post_id The post ID
 * @param  array $js_function_calls JavaScript code to include
 * @param  ?array $topic_info The topic row (returned by reference) (null: initial input)
 * @param  ?array $post_info The post row (returned by reference) (null: initial input)
 * @return Tempcode The UI
 */

function report_post_form(object $title, int $post_id, array $js_function_calls, ?array &$topic_info = null, ?array &$post_info = null) : object