mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-21 21:30:08 +00:00
Add property-read to Message / Room DBOs
This commit is contained in:
parent
4a659214a0
commit
9c9e634388
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010-2018 Tim Düsterhus.
|
* Copyright (c) 2010-2020 Tim Düsterhus.
|
||||||
*
|
*
|
||||||
* Use of this software is governed by the Business Source License
|
* Use of this software is governed by the Business Source License
|
||||||
* included in the LICENSE file.
|
* included in the LICENSE file.
|
||||||
*
|
*
|
||||||
* Change Date: 2024-10-20
|
* Change Date: 2024-11-01
|
||||||
*
|
*
|
||||||
* On the date above, in accordance with the Business Source
|
* On the date above, in accordance with the Business Source
|
||||||
* License, use of this software will be governed by version 2
|
* License, use of this software will be governed by version 2
|
||||||
@ -16,6 +16,16 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a chat message.
|
* Represents a chat message.
|
||||||
|
*
|
||||||
|
* @property-read integer $messageID
|
||||||
|
* @property-read integer $time
|
||||||
|
* @property-read integer $roomID
|
||||||
|
* @property-read integer $userID
|
||||||
|
* @property-read string $username
|
||||||
|
* @property-read integer $objectTypeID
|
||||||
|
* @property-read mixed $payload
|
||||||
|
* @property-read integer $hasEmbeddedObjects
|
||||||
|
* @property-read integer $isDeleted
|
||||||
*/
|
*/
|
||||||
class Message extends \wcf\data\DatabaseObject {
|
class Message extends \wcf\data\DatabaseObject {
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Use of this software is governed by the Business Source License
|
* Use of this software is governed by the Business Source License
|
||||||
* included in the LICENSE file.
|
* included in the LICENSE file.
|
||||||
*
|
*
|
||||||
* Change Date: 2024-10-20
|
* Change Date: 2024-11-01
|
||||||
*
|
*
|
||||||
* On the date above, in accordance with the Business Source
|
* On the date above, in accordance with the Business Source
|
||||||
* License, use of this software will be governed by version 2
|
* License, use of this software will be governed by version 2
|
||||||
@ -23,14 +23,21 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a chat room.
|
* Represents a chat room.
|
||||||
|
*
|
||||||
|
* @property-read integer $roomID
|
||||||
|
* @property-read string $title
|
||||||
|
* @property-read string $topic
|
||||||
|
* @property-read integer $position
|
||||||
|
* @property-read integer $userLimit
|
||||||
|
* @property-read integer $isTemporary
|
||||||
|
* @property-read integer $ownerID
|
||||||
|
* @property-read integer $topicUseHtml
|
||||||
*/
|
*/
|
||||||
final class Room extends \wcf\data\DatabaseObject implements \wcf\system\request\IRouteController
|
final class Room extends \wcf\data\DatabaseObject implements \wcf\system\request\IRouteController
|
||||||
, \wcf\data\ITitledLinkObject
|
, \wcf\data\ITitledLinkObject
|
||||||
, \JsonSerializable {
|
, \JsonSerializable {
|
||||||
/**
|
/**
|
||||||
* User to Room mapping.
|
* @var ?(integer[])
|
||||||
*
|
|
||||||
* @param int[]
|
|
||||||
*/
|
*/
|
||||||
private static $userToRoom = null;
|
private static $userToRoom = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user