@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | $this->kernel = $kernel; |
12 | 12 | } |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $type |
|
16 | + */ |
|
14 | 17 | function findBySectionAndType($section, $type) |
15 | 18 | { |
16 | 19 | $class = $this->class_prefix . ucfirst($type); |
@@ -37,6 +40,9 @@ discard block |
||
37 | 40 | return new $class(CMS_Section::factory($this->kernel, 'id', $this->db->f('section_id')), $this->db->f('id')); |
38 | 41 | } |
39 | 42 | |
43 | + /** |
|
44 | + * @param string $id |
|
45 | + */ |
|
40 | 46 | function findByKernelAndId($kernel, $id) |
41 | 47 | { |
42 | 48 | $cms_module = $kernel->getModule('cms'); |
@@ -53,6 +59,9 @@ discard block |
||
53 | 59 | return new $class(CMS_Section::factory($kernel, 'id', $this->db->f('section_id')), $this->db->f('id')); |
54 | 60 | } |
55 | 61 | |
62 | + /** |
|
63 | + * @param string $id |
|
64 | + */ |
|
56 | 65 | function findBySectionAndId($section, $id) |
57 | 66 | { |
58 | 67 | // FIXME - jeg tror den her kan skabe en del |
@@ -21,6 +21,9 @@ |
||
21 | 21 | $this->translation = $translation; |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $phrase |
|
26 | + */ |
|
24 | 27 | function t($phrase) |
25 | 28 | { |
26 | 29 | return utf8_encode($this->translation->get($phrase)); |
@@ -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); |
@@ -282,7 +285,7 @@ discard block |
||
282 | 285 | /** |
283 | 286 | * Returns the possible page types but with a binary index |
284 | 287 | * |
285 | - * @return array possible page types with binary index |
|
288 | + * @return string[] possible page types with binary index |
|
286 | 289 | */ |
287 | 290 | static public function getTypesWithBinaryIndex() |
288 | 291 | { |
@@ -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'; |
@@ -87,6 +87,9 @@ |
||
87 | 87 | return 'Create'; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @return string |
|
92 | + */ |
|
90 | 93 | function getType() |
91 | 94 | { |
92 | 95 | return $this->context->context->getType(); |
@@ -23,6 +23,9 @@ |
||
23 | 23 | return $this->context->getKernel(); |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @return Invoice |
|
28 | + */ |
|
26 | 29 | function getModel() |
27 | 30 | { |
28 | 31 | return $this->context->getModel(); |