Browse code

Add categories model

Benjamin Roth authored on27/02/2024 15:00:29
Showing2 changed files
... ...
@@ -11,6 +11,7 @@
11 11
 use vonRotenberg\RealEstateListingBundle\Model\RealEstateAssetsModel;
12 12
 use Contao\System;
13 13
 use Contao\ArrayUtil;
14
+use vonRotenberg\RealEstateListingBundle\Model\RealEstateCategoriesModel;
14 15
 
15 16
 ArrayUtil::arrayInsert($GLOBALS['BE_MOD'], 1, [
16 17
   'vr_real_estate' => [
... ...
@@ -29,5 +30,6 @@ if ($requestStack->getCurrentRequest() !== null && $scopeMatcher->isBackendReque
29 30
 }
30 31
 
31 32
 $GLOBALS['TL_MODELS']['tl_vr_real_estate_assets'] = RealEstateAssetsModel::class;
33
+$GLOBALS['TL_MODELS']['tl_vr_real_estate_categories'] = RealEstateCategoriesModel::class;
32 34
 
33 35
 
34 36
new file mode 100644
... ...
@@ -0,0 +1,55 @@
1
+<?php
2
+
3
+/**
4
+ * OBG Customizations
5
+ *
6
+ * Copyright (c) 2021 vonRotenberg
7
+ *
8
+ * @license commercial
9
+ */
10
+
11
+namespace vonRotenberg\RealEstateListingBundle\Model;
12
+
13
+use Contao\CoreBundle\File\ModelMetadataTrait;
14
+use Contao\Date;
15
+use Contao\Model;
16
+use Contao\Model\Collection;
17
+
18
+/**
19
+ * Reads and writes assets
20
+ *
21
+ * @property string|integer         $id
22
+ * @property string|integer         $tstamp
23
+ * @property string                 $title
24
+ * @property string|null            $description
25
+ *
26
+ * @method static RealEstateAssetsModel|null findById($id, array $opt=array())
27
+ * @method static RealEstateAssetsModel|null findByPk($id, array $opt=array())
28
+ * @method static RealEstateAssetsModel|null findOneBy($col, $val, array $opt=array())
29
+ * @method static RealEstateAssetsModel|null findOneByTstamp($val, array $opt=array())
30
+ * @method static RealEstateAssetsModel|null findOneByTitle($val, array $opt=array())
31
+ * @method static RealEstateAssetsModel|null findOneByDescription($val, array $opt=array())
32
+ *
33
+ * @method static Collection|RealEstateAssetsModel[]|RealEstateAssetsModel|null findByTstamp($val, array $opt=array())
34
+ * @method static Collection|RealEstateAssetsModel[]|RealEstateAssetsModel|null findByTitle($val, array $opt=array())
35
+ * @method static Collection|RealEstateAssetsModel[]|RealEstateAssetsModel|null findByDescription($val, array $opt=array())
36
+ * @method static Collection|RealEstateAssetsModel[]|RealEstateAssetsModel|null findMultipleByIds($val, array $opt=array())
37
+ * @method static Collection|RealEstateAssetsModel[]|RealEstateAssetsModel|null findBy($col, $val, array $opt=array())
38
+ * @method static Collection|RealEstateAssetsModel[]|RealEstateAssetsModel|null findAll(array $opt=array())
39
+ *
40
+ * @method static integer countById($id, array $opt=array())
41
+ * @method static integer countByTstamp($val, array $opt=array())
42
+ * @method static integer countByTitle($val, array $opt=array())
43
+ * @method static integer countByDescription($val, array $opt=array())
44
+ *
45
+ * @author Benjamin Roth <https://www.vonrotenberg.de>
46
+ */
47
+class RealEstateCategoriesModel extends Model
48
+{
49
+
50
+	/**
51
+	 * Table name
52
+	 * @var string
53
+	 */
54
+	protected static $strTable = 'tl_vr_real_estate_categories';
55
+}