/sources/ocf_moderation_action2.php

Description
Functions
ocf_delete_multi_moderation (line 62)

Delete a multi moderation.

void ocf_delete_multi_moderation (AUTO_LINK $id)
  • AUTO_LINK $id: The ID of the multi moderation we are deleting.
ocf_delete_warning (line 253)

Delete a formal warning.

void ocf_delete_warning (AUTO_LINK $warning_id)
  • AUTO_LINK $warning_id: The ID of the formal warning we are deleting.
ocf_edit_multi_moderation (line 34)

Edit a multi moderation.

void ocf_edit_multi_moderation (AUTO_LINK $id, SHORT_TEXT $name, LONG_TEXT $post_text, ?AUTO_LINK $move_to, BINARY $pin_state, BINARY $sink_state, BINARY $open_state, SHORT_TEXT $forum_multi_code, SHORT_TEXT $title_suffix)
  • AUTO_LINK $id: The ID of the multi moderation we are editing.
  • SHORT_TEXT $name: The name of the multi moderation.
  • LONG_TEXT $post_text: The default post text to add when applying (may be blank).
  • ?AUTO_LINK $move_to: The forum to move the topic when applying (NULL: do not move).
  • BINARY $pin_state: The pin state after applying.
  • BINARY $sink_state: The sink state after applying.
  • BINARY $open_state: The open state after applying.
  • SHORT_TEXT $forum_multi_code: The forum multi code for where this multi moderation may be applied.
  • SHORT_TEXT $title_suffix: The title suffix.
ocf_edit_warning (line 233)

Edit a formal warning.

void ocf_edit_warning (AUTO_LINK $warning_id, LONG_TEXT $explanation, [BINARY $is_warning = 1])
  • AUTO_LINK $warning_id: The ID of the formal warning we are editing.
  • LONG_TEXT $explanation: An explanation for why the member is being warned.
  • BINARY $is_warning: Whether this counts as a warning
ocf_make_warning (line 198)

Add a formal warning.

  • return: The ID of the newly created warning.
AUTO_LINK ocf_make_warning (MEMBER $member_id, LONG_TEXT $explanation, [?MEMBER $by = NULL], [?TIME $time = NULL], [BINARY $is_warning = 1], [?AUTO_LINK $silence_from_topic = NULL], [?AUTO_LINK $silence_from_forum = NULL], [integer $probation = 0], [IP $banned_ip = ''], [integer $charged_points = 0], [BINARY $banned_member = 0], [?GROUP $changed_usergroup_from = NULL])
  • MEMBER $member_id: The member being warned.
  • LONG_TEXT $explanation: An explanation for why the member is being warned.
  • ?MEMBER $by: The member doing the warning (NULL: current member).
  • ?TIME $time: The time of the warning (NULL: now).
  • BINARY $is_warning: Whether this counts as a warning
  • ?AUTO_LINK $silence_from_topic: The topic being silenced from (NULL: none)
  • ?AUTO_LINK $silence_from_forum: The forum being silenced from (NULL: none)
  • integer $probation: Number of extra days for probation
  • IP $banned_ip: The IP address being banned (blank: none)
  • integer $charged_points: The points being charged
  • BINARY $banned_member: Whether the member is being banned
  • ?GROUP $changed_usergroup_from: The usergroup being changed from (NULL: no change)
ocf_perform_multi_moderation (line 82)

Perform a multi moderation.

void ocf_perform_multi_moderation (AUTO_LINK $id, AUTO_LINK $topic_id, LONG_TEXT $reason, [LONG_TEXT $post_text = ''], [BINARY $is_emphasised = 1], [BINARY $skip_sig = 0])
  • AUTO_LINK $id: The ID of the multi moderation we are performing.
  • AUTO_LINK $topic_id: The ID of the topic we are performing the multi moderation on.
  • LONG_TEXT $reason: The reason for performing the multi moderation (may be blank).
  • LONG_TEXT $post_text: The post text for a post to be added to the topic (blank: do not add a post).
  • BINARY $is_emphasised: Whether the post is marked emphasised.
  • BINARY $skip_sig: Whether to skip showing the posters signature in the post.
warnings_script (line 142)

Script for loading presets from saved warnings.

void warnings_script ()

Documentation generated on Sun, 02 Jan 2011 23:20:02 +0000 by phpDocumentor 1.4.3