Browse code

Allow restricting the available content elements for articles using article layouts

Benjamin Roth authored on13/07/2016 10:18:11
Showing1 changed files
... ...
@@ -27,6 +27,8 @@ namespace eSM_artLayout;
27 27
  * @property integer $maxWidth
28 28
  * @property integer $useHelper
29 29
  * @property string  $bgStyle
30
+ * @property integer $restrictContentElements
31
+ * @property string  $allowedElements
30 32
  *
31 33
  * @method static \ThemeModel|null findById($id, $opt=array())
32 34
  * @method static \ThemeModel|null findByPk($id, $opt=array())
Browse code

Initial commit

Benjamin Roth authored on13/07/2016 09:17:47
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,62 @@
1
+<?php
2
+
3
+/**
4
+ * ArtLayout for Contao
5
+ *
6
+ * Copyright (c) 2016 Benjamin Roth
7
+ *
8
+ * @link    http://www.esales-media.de
9
+ * @license commercial
10
+ */
11
+
12
+namespace eSM_artLayout;
13
+
14
+
15
+/**
16
+ * Reads and writes article layouts
17
+ *
18
+ * @property integer $id
19
+ * @property integer $pid
20
+ * @property integer $sorting
21
+ * @property integer $tstamp
22
+ * @property string  $title
23
+ * @property string  $alias
24
+ * @property integer $showBackgroundImage
25
+ * @property string  $bgImageSize
26
+ * @property integer $center
27
+ * @property integer $maxWidth
28
+ * @property integer $useHelper
29
+ * @property string  $bgStyle
30
+ *
31
+ * @method static \ThemeModel|null findById($id, $opt=array())
32
+ * @method static \ThemeModel|null findByPk($id, $opt=array())
33
+ * @method static \ThemeModel|null findByIdOrAlias($val, $opt=array())
34
+ * @method static \ThemeModel|null findOneBy($col, $val, $opt=array())
35
+ * @method static \ThemeModel|null findOneByTstamp($val, $opt=array())
36
+ * @method static \ThemeModel|null findOneByTitle($val, $opt=array())
37
+ * @method static \ThemeModel|null findOneByAlias($val, $opt=array())
38
+ *
39
+ * @method static \Model\Collection|\ThemeModel|null findByTstamp($val, $opt=array())
40
+ * @method static \Model\Collection|\ThemeModel|null findByTitle($val, $opt=array())
41
+ * @method static \Model\Collection|\ThemeModel|null findByAlias($val, $opt=array())
42
+ * @method static \Model\Collection|\ThemeModel|null findMultipleByIds($val, $opt=array())
43
+ * @method static \Model\Collection|\ThemeModel|null findBy($col, $val, $opt=array())
44
+ * @method static \Model\Collection|\ThemeModel|null findAll($opt=array())
45
+ *
46
+ * @method static integer countById($id, $opt=array())
47
+ * @method static integer countByTstamp($val, $opt=array())
48
+ * @method static integer countByTitle($val, $opt=array())
49
+ * @method static integer countByAlias($val, $opt=array())
50
+ *
51
+ * @author Benjamin Roth <http://www.esales-media.de>
52
+ */
53
+class ArticleLayoutsModel extends \Model
54
+{
55
+
56
+	/**
57
+	 * Table name
58
+	 * @var string
59
+	 */
60
+	protected static $strTable = 'tl_article_layouts';
61
+
62
+}