@@ -26,6 +26,9 @@ discard block |
||
26 | 26 | $this->db->setOption('portability', MDB2_PORTABILITY_NONE); |
27 | 27 | } |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $SQL |
|
31 | + */ |
|
29 | 32 | function query($SQL) |
30 | 33 | { |
31 | 34 | $this->result = $this->db->query($SQL); |
@@ -101,6 +104,9 @@ discard block |
||
101 | 104 | return mysql_escape_string($value); |
102 | 105 | } |
103 | 106 | |
107 | + /** |
|
108 | + * @param string $type |
|
109 | + */ |
|
104 | 110 | function quote($value, $type) |
105 | 111 | { |
106 | 112 | return $this->db->quote($value, $type); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param string $belong_to What the address belongs to, corresponding to the ones in Address::getBelongToTypes() |
15 | 15 | * @param integer $belong_to_id From belong_to. NB not id on the address |
16 | 16 | * |
17 | - * @return object Address |
|
17 | + * @return Intraface_Address Address |
|
18 | 18 | */ |
19 | 19 | public function findByBelongToAndId($belong_to, $belong_to_id) |
20 | 20 | { |
@@ -8,6 +8,9 @@ |
||
8 | 8 | $this->translation = $translation; |
9 | 9 | } |
10 | 10 | |
11 | + /** |
|
12 | + * @param Intraface_User $user |
|
13 | + */ |
|
11 | 14 | function findByUserobject($user) |
12 | 15 | { |
13 | 16 | $kernel = new Intraface_Kernel(session_id()); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @param object $voucher |
25 | 25 | * |
26 | - * @return void |
|
26 | + * @return string |
|
27 | 27 | */ |
28 | 28 | function __construct($voucher) |
29 | 29 | { |
@@ -90,6 +90,9 @@ |
||
90 | 90 | return $files; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $url |
|
95 | + */ |
|
93 | 96 | function url($url) |
94 | 97 | { |
95 | 98 | return PATH_WWW . 'restricted' . $url; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * @param object $year_object |
18 | 18 | * |
19 | - * @return void |
|
19 | + * @return string |
|
20 | 20 | */ |
21 | 21 | public function __construct($year_object) |
22 | 22 | { |
@@ -32,10 +32,9 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Creates a voucher |
34 | 34 | * |
35 | - * @param object $year |
|
36 | 35 | * @param string $voucher_number |
37 | 36 | * |
38 | - * @return void |
|
37 | + * @return Voucher |
|
39 | 38 | */ |
40 | 39 | public function findFromVoucherNumber($voucher_number) |
41 | 40 | { |
@@ -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 |
@@ -124,6 +124,9 @@ |
||
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param integer $id |
|
129 | + */ |
|
127 | 130 | public function factory($kernel, $id) |
128 | 131 | { |
129 | 132 | $gateway = new Intraface_modules_contact_MemosGateway($kernel); |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | throw new Exception('Could not save information in ContactReminder->update' . $result->getUserInfo()); |
225 | 225 | return false; |
226 | 226 | } |
227 | - return $this->id; |
|
227 | + return $this->id; |
|
228 | 228 | } |
229 | 229 | |
230 | 230 | /** |
@@ -244,8 +244,8 @@ discard block |
||
244 | 244 | throw new Exception('Could not postphone reminder' . $result->getUserInfo()); |
245 | 245 | return false; |
246 | 246 | } |
247 | - $this->load(); |
|
248 | - return true; |
|
247 | + $this->load(); |
|
248 | + return true; |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | /** |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | if ($result->numRows() == 0) { |
278 | 278 | return array(); |
279 | 279 | } |
280 | - return $result->fetchAll(MDB2_FETCHMODE_ASSOC); |
|
280 | + return $result->fetchAll(MDB2_FETCHMODE_ASSOC); |
|
281 | 281 | } |
282 | 282 | |
283 | 283 | /** |
@@ -295,8 +295,8 @@ discard block |
||
295 | 295 | throw new Exception('Could not postphone reminder' . $result->getUserInfo()); |
296 | 296 | return false; |
297 | 297 | } |
298 | - $this->load(); |
|
299 | - return true; |
|
298 | + $this->load(); |
|
299 | + return true; |
|
300 | 300 | } |
301 | 301 | |
302 | 302 | public function getDBQuery() |
@@ -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(); |