| ... | ... |
@@ -8,6 +8,7 @@ |
| 8 | 8 |
* @license LGPL-3.0-or-later |
| 9 | 9 |
*/ |
| 10 | 10 |
|
| 11 |
+use vonRotenberg\MemberfilesBundle\Model\MemberfilesConfigModel; |
|
| 11 | 12 |
use vonRotenberg\MemberfilesBundle\Model\SecureDownloadsModel; |
| 12 | 13 |
|
| 13 | 14 |
/** |
| ... | ... |
@@ -52,3 +53,4 @@ $GLOBALS['TL_PERMISSIONS'][] = 'sec_dl_access'; |
| 52 | 53 |
*/ |
| 53 | 54 |
|
| 54 | 55 |
$GLOBALS['TL_MODELS']['tl_member_secureDownloads'] = SecureDownloadsModel::class; |
| 56 |
+$GLOBALS['TL_MODELS']['tl_memberfiles_config'] = MemberfilesConfigModel::class; |
| 55 | 57 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,45 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+declare(strict_types=1); |
|
| 4 |
+ |
|
| 5 |
+namespace vonRotenberg\MemberfilesBundle\Model; |
|
| 6 |
+ |
|
| 7 |
+use Contao\Model; |
|
| 8 |
+use Contao\Model\Collection; |
|
| 9 |
+ |
|
| 10 |
+/** |
|
| 11 |
+ * Reads and writes memberfiles configurations |
|
| 12 |
+ * |
|
| 13 |
+ * @property string|integer $id |
|
| 14 |
+ * @property string|integer $tstamp |
|
| 15 |
+ * @property string $title |
|
| 16 |
+ * @property string $regexp |
|
| 17 |
+ * @property string|boolean $hasNotification |
|
| 18 |
+ * |
|
| 19 |
+ * @method static MemberfilesConfigModel|null findById($id, array $opt=array()) |
|
| 20 |
+ * @method static MemberfilesConfigModel|null findByPk($id, array $opt=array()) |
|
| 21 |
+ * @method static MemberfilesConfigModel|null findOneBy($col, $val, array $opt=array()) |
|
| 22 |
+ * @method static MemberfilesConfigModel|null findOneByTstamp($val, array $opt=array()) |
|
| 23 |
+ * @method static MemberfilesConfigModel|null findOneByTitle($val, array $opt=array()) |
|
| 24 |
+ * @method static MemberfilesConfigModel|null findOneByRegexp($val, array $opt=array()) |
|
| 25 |
+ * @method static MemberfilesConfigModel|null findOneByHasNotification($val, array $opt=array()) |
|
| 26 |
+ * |
|
| 27 |
+ * @method static Collection|MemberfilesConfigModel[]|MemberfilesConfigModel|null findByTstamp($val, array $opt=array()) |
|
| 28 |
+ * @method static Collection|MemberfilesConfigModel[]|MemberfilesConfigModel|null findByTitle($val, array $opt=array()) |
|
| 29 |
+ * @method static Collection|MemberfilesConfigModel[]|MemberfilesConfigModel|null findByRegexp($val, array $opt=array()) |
|
| 30 |
+ * @method static Collection|MemberfilesConfigModel[]|MemberfilesConfigModel|null findByHasNotification($val, array $opt=array()) |
|
| 31 |
+ * |
|
| 32 |
+ * @method static integer countById($id, array $opt=array()) |
|
| 33 |
+ * @method static integer countByTstamp($val, array $opt=array()) |
|
| 34 |
+ * @method static integer countByTitle($val, array $opt=array()) |
|
| 35 |
+ * @method static integer countByRegexp($val, array $opt=array()) |
|
| 36 |
+ * @method static integer countByHasNotification($val, array $opt=array()) |
|
| 37 |
+ */ |
|
| 38 |
+class MemberfilesConfigModel extends Model |
|
| 39 |
+{
|
|
| 40 |
+ /** |
|
| 41 |
+ * Table name |
|
| 42 |
+ * @var string |
|
| 43 |
+ */ |
|
| 44 |
+ protected static $strTable = 'tl_memberfiles_config'; |
|
| 45 |
+} |