| Total Complexity | 1 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Message extends Methods |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Query of sessions with activity within specified time period |
||
| 12 | */ |
||
| 13 | const PERIOD_ALL_TIME = 0; |
||
| 14 | const PERIOD_LAST_MONTH = 1; |
||
| 15 | const PERIOD_LAST_WEEK = 2; |
||
| 16 | const PERIOD_LAST_DAY = 3; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Message type |
||
| 20 | */ |
||
| 21 | const MESSAGE_TYPE_TEXT = 0; |
||
| 22 | const MESSAGE_FILE_LINK = 2; |
||
| 23 | const MESSAGE_ADD_CONFERENCE = 3; |
||
| 24 | const MESSAGE_DELETE_CONFERENCE = 4; |
||
| 25 | const MESSAGE_CONTACT_LINK = 10; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Message status |
||
| 29 | */ |
||
| 30 | const MESSAGE_STATUS_INCOMING_NEW = 1; |
||
| 31 | const MESSAGE_STATUS_INCOMING_OUTCOMING = 2; |
||
| 32 | const MESSAGE_STATUS_OUTCOMING_UNREAD = 3; |
||
| 33 | const MESSAGE_STATUS_OUTCOMING_OUTCOMING = 4; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Gets the name of all mandatory fields |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getMandatoryFields(): array |
||
| 44 |