Changeset 894 for trunk/Modules/Chat/Chat.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Chat/Chat.php
r887 r894 98 98 } 99 99 100 function GetModels(): array 101 { 102 return array(ChatHistory::GetClassName()); 103 } 104 100 105 function DoStart(): void 101 106 { … … 103 108 } 104 109 } 110 111 class ChatHistory extends Model 112 { 113 static function GetDesc(): ModelDesc 114 { 115 $Desc = new ModelDesc(self::GetClassName()); 116 $Desc->AddString('Nick'); 117 $Desc->AddText('Text'); 118 $Desc->AddDateTime('Time'); 119 $Desc->AddInteger('Color'); 120 $Desc->AddString('RoomName'); 121 $Desc->AddInteger('RoomType'); 122 $Desc->AddString('Host'); 123 return $Desc; 124 } 125 }
Note:
See TracChangeset
for help on using the changeset viewer.