@@ -468,6 +468,7 @@ |
||
468 | 468 | |
469 | 469 | /** |
470 | 470 | * Return path to ckeditor.js. |
471 | + * @return string |
|
471 | 472 | */ |
472 | 473 | private function ckeditorPath() |
473 | 474 | { |
@@ -82,6 +82,9 @@ |
||
82 | 82 | return $this->context->getKernel(); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @return integer |
|
87 | + */ |
|
85 | 88 | function getShopId() |
86 | 89 | { |
87 | 90 | if ($this->query('shop_id')) { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * Creates a parameter |
71 | 71 | * |
72 | - * @return object |
|
72 | + * @return CMS_Parameter |
|
73 | 73 | */ |
74 | 74 | function createParameter() |
75 | 75 | { |
@@ -6,6 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | public $methods = array('single_image'); |
8 | 8 | |
9 | + /** |
|
10 | + * @param FakeCMSSection $section |
|
11 | + */ |
|
9 | 12 | function __construct($section, $id = 0) |
10 | 13 | { |
11 | 14 | $this->value['type'] = 'gallery'; |
@@ -5,6 +5,9 @@ |
||
5 | 5 | class Intraface_modules_cms_element_Pagelist extends CMS_Element |
6 | 6 | { |
7 | 7 | |
8 | + /** |
|
9 | + * @param FakeCMSSection $section |
|
10 | + */ |
|
8 | 11 | function __construct($section, $id = 0) |
9 | 12 | { |
10 | 13 | $this->value['type'] = 'pagelist'; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * Returns position object |
128 | 128 | * |
129 | 129 | * @param object $db database object |
130 | - * @return object Position |
|
130 | + * @return Ilib_Position Position |
|
131 | 131 | */ |
132 | 132 | public function getPosition($db) |
133 | 133 | { |
@@ -137,13 +137,16 @@ discard block |
||
137 | 137 | /** |
138 | 138 | * returns Template object |
139 | 139 | * |
140 | - * @return object Template |
|
140 | + * @return CMS_Template Template |
|
141 | 141 | */ |
142 | 142 | public function getTemplate() |
143 | 143 | { |
144 | 144 | return $this->template; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $type |
|
149 | + */ |
|
147 | 150 | function factory($kernel, $type, $value) |
148 | 151 | { |
149 | 152 | $gateway = new Intraface_modules_cms_PageGateway($kernel, new DB_Sql); |
@@ -745,6 +748,7 @@ discard block |
||
745 | 748 | |
746 | 749 | /** |
747 | 750 | * @todo is this still used after the introduction of publish and unpublish |
751 | + * @param string $status |
|
748 | 752 | */ |
749 | 753 | function setStatus($status) |
750 | 754 | { |
@@ -815,7 +819,7 @@ discard block |
||
815 | 819 | /** |
816 | 820 | * Returns the possible page types |
817 | 821 | * |
818 | - * @return array possible page types |
|
822 | + * @return string[] possible page types |
|
819 | 823 | */ |
820 | 824 | public function getTypes() |
821 | 825 | { |
@@ -825,7 +829,7 @@ discard block |
||
825 | 829 | /** |
826 | 830 | * Returns the possible page types but with a binary index |
827 | 831 | * |
828 | - * @return array possible page types with binary index |
|
832 | + * @return string[] possible page types with binary index |
|
829 | 833 | */ |
830 | 834 | public static function getTypesWithBinaryIndex() |
831 | 835 | { |
@@ -62,11 +62,17 @@ |
||
62 | 62 | return new CMS_Parameter($this); |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $key |
|
67 | + */ |
|
65 | 68 | function addParameter($key, $value) |
66 | 69 | { |
67 | 70 | return $this->parameter->save($key, $value); |
68 | 71 | } |
69 | 72 | |
73 | + /** |
|
74 | + * @param string $type |
|
75 | + */ |
|
70 | 76 | function factory($object, $type, $value) |
71 | 77 | { |
72 | 78 | $class_prefix = 'Intraface_modules_cms_templatesection_'; |
@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | { |
13 | 13 | private $allowed_tags = ''; |
14 | 14 | |
15 | + /** |
|
16 | + * @param FakeCMSPage $cmspage |
|
17 | + */ |
|
15 | 18 | function __construct($cmspage, $id = 0) |
16 | 19 | { |
17 | 20 | $this->value['type'] = 'longtext'; |
@@ -52,6 +55,9 @@ discard block |
||
52 | 55 | return true; |
53 | 56 | } |
54 | 57 | |
58 | + /** |
|
59 | + * @param string[] $array |
|
60 | + */ |
|
55 | 61 | public static function convertArrayToTags($array) |
56 | 62 | { |
57 | 63 | $tags = ''; |
@@ -65,6 +65,9 @@ discard block |
||
65 | 65 | return 'cms_template'; |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param DB_Sql $db |
|
70 | + */ |
|
68 | 71 | function getPosition($db) |
69 | 72 | { |
70 | 73 | return new Ilib_Position($db, 'cms_template', $this->id, 'site_id = ' . $this->cmssite->get('id'), 'id', 'position'); |
@@ -131,6 +134,9 @@ discard block |
||
131 | 134 | } |
132 | 135 | |
133 | 136 | |
137 | + /** |
|
138 | + * @return string |
|
139 | + */ |
|
134 | 140 | function save($var) |
135 | 141 | { |
136 | 142 | if (!empty($var['for_page_type']) && is_array($var['for_page_type'])) { |