Kaynağa Gözat

Add Models\PM\Cnst

These are constants for PM.
Visman 4 yıl önce
ebeveyn
işleme
11b91b1873
1 değiştirilmiş dosya ile 35 ekleme ve 0 silme
  1. 35 0
      app/Models/PM/Cnst.php

+ 35 - 0
app/Models/PM/Cnst.php

@@ -0,0 +1,35 @@
+<?php
+/**
+ * This file is part of the ForkBB <https://github.com/forkbb>.
+ *
+ * @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
+ * @license   The MIT License (MIT)
+ */
+
+declare(strict_types=1);
+
+namespace ForkBB\Models\PM;
+
+class Cnst
+{
+    const ACTION_NEW     = 'new';
+    const ACTION_CURRENT = 'current';
+    const ACTION_ARCHIVE = 'archive';
+    const ACTION_SEND    = 'send';
+    const ACTION_TOPIC   = 'topic';
+    const ACTION_DELETE  = 'delete';
+    const ACTION_EDIT    = 'edit';
+    const ACTION_BLOCK   = 'block';
+    const ACTION_CONFIG  = 'config';
+    const ACTION_POST    = 'post';
+
+    const PT_START   = -1;
+    const PT_DELETED = 0;
+    const PT_NOTSENT = 1;
+    const PT_NORMAL  = 2;
+    const PT_ARCHIVE = 3;
+
+    const PTOPIC = 0;
+    const PPOST  = 1;
+    const PRND   = 2;
+}