@@ -10,6 +10,9 @@ |
||
10 | 10 | private $cmspage; |
11 | 11 | public $value; |
12 | 12 | |
13 | + /** |
|
14 | + * @param CMS_Page $cmspage |
|
15 | + */ |
|
13 | 16 | function __construct($cmspage) |
14 | 17 | { |
15 | 18 | $this->cmspage = $cmspage; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * Returns the possible page types |
27 | 27 | * |
28 | - * @return array possible page types |
|
28 | + * @return string[] possible page types |
|
29 | 29 | */ |
30 | 30 | public function getTypes() |
31 | 31 | { |
@@ -59,6 +59,9 @@ discard block |
||
59 | 59 | return $object; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $identifier |
|
64 | + */ |
|
62 | 65 | function findBySiteIdAndIdentifier($site_id, $identifier) |
63 | 66 | { |
64 | 67 | $identifier = strip_tags($identifier); |
@@ -277,7 +280,7 @@ discard block |
||
277 | 280 | /** |
278 | 281 | * Returns the possible page types but with a binary index |
279 | 282 | * |
280 | - * @return array possible page types with binary index |
|
283 | + * @return string[] possible page types with binary index |
|
281 | 284 | */ |
282 | 285 | public static function getTypesWithBinaryIndex() |
283 | 286 | { |
@@ -58,11 +58,17 @@ |
||
58 | 58 | return new CMS_Parameter($this); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $key |
|
63 | + */ |
|
61 | 64 | public function addParameter($key, $value) |
62 | 65 | { |
63 | 66 | return $this->parameter->save($key, $value); |
64 | 67 | } |
65 | 68 | |
69 | + /** |
|
70 | + * @param string $type |
|
71 | + */ |
|
66 | 72 | public function factory($object, $type, $value) |
67 | 73 | { |
68 | 74 | $class_prefix = 'Intraface_modules_cms_section_'; |
@@ -7,6 +7,9 @@ |
||
7 | 7 | private $cmssite; |
8 | 8 | public $error; |
9 | 9 | |
10 | + /** |
|
11 | + * @param CMS_Site $cmssite |
|
12 | + */ |
|
10 | 13 | function __construct($cmssite) |
11 | 14 | { |
12 | 15 | if (!is_object($cmssite) or strtolower(get_class($cmssite)) != 'cms_site') { |
@@ -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_'; |
@@ -6,6 +6,9 @@ |
||
6 | 6 | */ |
7 | 7 | class Intraface_modules_cms_templatesection_Mixed extends CMS_TemplateSection |
8 | 8 | { |
9 | + /** |
|
10 | + * @param CMS_Template $cmspage |
|
11 | + */ |
|
9 | 12 | function __construct($cmspage, $id = 0) |
10 | 13 | { |
11 | 14 | $this->value['type'] = 'mixed'; |
@@ -79,6 +79,9 @@ |
||
79 | 79 | { |
80 | 80 | private $file_handler; |
81 | 81 | |
82 | + /** |
|
83 | + * @param FileHandler $file_handler |
|
84 | + */ |
|
82 | 85 | function __construct($file_handler) |
83 | 86 | { |
84 | 87 | $this->file_handler = $file_handler; |
@@ -219,7 +219,6 @@ discard block |
||
219 | 219 | * Checks whether a name is free to use |
220 | 220 | * |
221 | 221 | * @param string $name |
222 | - * @param integer $id integer which should not be checked |
|
223 | 222 | * @return boolean true or false |
224 | 223 | */ |
225 | 224 | private function isNameFree($name, $type_key = 0) |
@@ -353,7 +352,7 @@ discard block |
||
353 | 352 | /** |
354 | 353 | * returns the resize types |
355 | 354 | * |
356 | - * @return array resize types |
|
355 | + * @return string[] resize types |
|
357 | 356 | */ |
358 | 357 | public function getResizeTypes() |
359 | 358 | { |
@@ -207,6 +207,9 @@ |
||
207 | 207 | $this->removeDir('/home/intraface/upload/' . $intranet_id . '/'); |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @param string $path |
|
212 | + */ |
|
210 | 213 | protected function removeDir($path) |
211 | 214 | { |
212 | 215 | // Add trailing slash to $path if one is not there |