Function __global->update_spacer_post
Definitions
sources/feedback.php
- Update the spacer post of a comment topic, after an edit.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $allow_comments | boolean | No | No | required parameter | N/A | N/A | Whether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function) |
| $feedback_type | ID_TEXT | No | No | required parameter | N/A | N/A | The feedback type (downloads, etc) that this commenting is for |
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | The ID of the type that this commenting is for |
| $content_url | mixed | No | No | required parameter | N/A | N/A | The URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode) |
| $content_title | ?string | No | No | required parameter | N/A | N/A | The title to where the commenting will pass back to (to put into the comment topic header) (null: don't know, but not first post so not important) |
| $forum | ?string | No | No | Null | N/A | N/A | The name of the forum to use (null: default comment forum) |
| $post_id | ?AUTO_LINK | No | No | Null | N/A | N/A | ID of spacer post (null: unknown) |
Preview
Code (PHP)
/**
* Update the spacer post of a comment topic, after an edit.
*
* @param boolean $allow_comments Whether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
* @param ID_TEXT $feedback_type The feedback type (downloads, etc) that this commenting is for
* @param ID_TEXT $content_id The ID of the type that this commenting is for
* @param mixed $content_url The URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
* @param ?string $content_title The title to where the commenting will pass back to (to put into the comment topic header) (null: don't know, but not first post so not important)
* @param ?string $forum The name of the forum to use (null: default comment forum)
* @param ?AUTO_LINK $post_id ID of spacer post (null: unknown)
*/
function update_spacer_post(bool $allow_comments, string $feedback_type, string $content_id, $content_url, ?string $content_title, ?string $forum = null, ?int $post_id = null)
* Update the spacer post of a comment topic, after an edit.
*
* @param boolean $allow_comments Whether this resource allows comments (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
* @param ID_TEXT $feedback_type The feedback type (downloads, etc) that this commenting is for
* @param ID_TEXT $content_id The ID of the type that this commenting is for
* @param mixed $content_url The URL to where the commenting will pass back to (to put into the comment topic header) (URLPATH or Tempcode)
* @param ?string $content_title The title to where the commenting will pass back to (to put into the comment topic header) (null: don't know, but not first post so not important)
* @param ?string $forum The name of the forum to use (null: default comment forum)
* @param ?AUTO_LINK $post_id ID of spacer post (null: unknown)
*/
function update_spacer_post(bool $allow_comments, string $feedback_type, string $content_id, $content_url, ?string $content_title, ?string $forum = null, ?int $post_id = null)

