Function __global->add_chatroom

Definitions

sources/chat2.php

  • Add a chatroom.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$welcome SHORT_TEXT required parameter N/A N/A The welcome message
$room_name SHORT_TEXT required parameter N/A N/A The room name
$room_owner ?MEMBER required parameter N/A N/A The room owner (null: none)
$allow2 LONG_TEXT required parameter N/A N/A The comma-separated list of users that may access it (blank: no restriction)
$allow2_groups LONG_TEXT required parameter N/A N/A The comma-separated list of usergroups that may access it (blank: no restriction)
$disallow2 LONG_TEXT required parameter N/A N/A The comma-separated list of users that may NOT access it (blank: no restriction)
$disallow2_groups LONG_TEXT required parameter N/A N/A The comma-separated list of usergroups that may NOT access it (blank: no restriction)
$room_language LANGUAGE_NAME required parameter N/A N/A The room language
$is_im BINARY 0 N/A N/A Whether it is an IM room

Return

  • The chatroom ID
  • Type: AUTO_LINK
  • Set: N/A
  • Range: N/A