Function __global->_chat_post_message_ajax

Definitions

sources/chat.php

  • Handle an AJAX message posting request.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$room_id AUTO_LINK No No required parameter N/A N/A Room ID
$message string No No required parameter N/A N/A The message
$font string No No required parameter N/A N/A Font name
$colour string No No required parameter N/A N/A Font colour
$first_message BINARY No No required parameter N/A N/A Whether this is the first message sent out to this room, since some change

Preview

Code (PHP)

/**
 * Handle an AJAX message posting request.
 *
 * @param  AUTO_LINK $room_id Room ID
 * @param  string $message The message
 * @param  string $font Font name
 * @param  string $colour Font colour
 * @param  BINARY $first_message Whether this is the first message sent out to this room, since some change
 */

function _chat_post_message_ajax(int $room_id, string $message, string $font, string $colour, int $first_message)