@@ -73,6 +73,9 @@ discard block |
||
73 | 73 | return true; |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $action |
|
78 | + */ |
|
76 | 79 | function setStated($action, $voucher_id) |
77 | 80 | { |
78 | 81 | $db = new DB_Sql; |
@@ -106,6 +109,7 @@ discard block |
||
106 | 109 | * credit-konto |
107 | 110 | * amount |
108 | 111 | * |
112 | + * @param string $action |
|
109 | 113 | */ |
110 | 114 | function saveStatedAction($action, $voucher_id, $debet_account_id, $credit_account_id, $amount) |
111 | 115 | { |
@@ -121,6 +125,9 @@ discard block |
||
121 | 125 | return true; |
122 | 126 | } |
123 | 127 | |
128 | + /** |
|
129 | + * @param string $action |
|
130 | + */ |
|
124 | 131 | function getStatedActions($action) |
125 | 132 | { |
126 | 133 | $db = new DB_Sql; |
@@ -154,6 +161,7 @@ discard block |
||
154 | 161 | * bør vel egentlig ikke være muligt! Måske kan man forestille sig, at den så bare |
155 | 162 | * gemmer videre og at den ved get lægger tallene i amount sammen? |
156 | 163 | * |
164 | + * @param string $type |
|
157 | 165 | */ |
158 | 166 | function saveStatement($type) |
159 | 167 | { |
@@ -199,6 +207,9 @@ discard block |
||
199 | 207 | return new Account($this->year, $id); |
200 | 208 | } |
201 | 209 | |
210 | + /** |
|
211 | + * @param string $type |
|
212 | + */ |
|
202 | 213 | function getStatement($type) |
203 | 214 | { |
204 | 215 |
@@ -14,6 +14,9 @@ |
||
14 | 14 | */ |
15 | 15 | class UserAdministration extends Intraface_User |
16 | 16 | { |
17 | + /** |
|
18 | + * @param integer $id |
|
19 | + */ |
|
17 | 20 | function __construct($kernel, $id) |
18 | 21 | { |
19 | 22 | parent::__construct($id); |
@@ -17,6 +17,9 @@ |
||
17 | 17 | } |
18 | 18 | } |
19 | 19 | |
20 | + /** |
|
21 | + * @return integer |
|
22 | + */ |
|
20 | 23 | function getSiteId() |
21 | 24 | { |
22 | 25 | return $this->context->name(); |
@@ -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 | { |
@@ -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; |
@@ -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); |
@@ -818,7 +821,7 @@ discard block |
||
818 | 821 | /** |
819 | 822 | * Returns the possible page types |
820 | 823 | * |
821 | - * @return array possible page types |
|
824 | + * @return string[] possible page types |
|
822 | 825 | */ |
823 | 826 | public function getTypes() |
824 | 827 | { |
@@ -828,7 +831,7 @@ discard block |
||
828 | 831 | /** |
829 | 832 | * Returns the possible page types but with a binary index |
830 | 833 | * |
831 | - * @return array possible page types with binary index |
|
834 | + * @return string[] possible page types with binary index |
|
832 | 835 | */ |
833 | 836 | static public function getTypesWithBinaryIndex() |
834 | 837 | { |
@@ -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 | { |