| @@ -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); | 
| @@ -225,7 +225,7 @@ discard block | ||
| 225 | 225 |              throw new Exception('Could not save information in ContactReminder->update' . $result->getUserInfo()); | 
| 226 | 226 | return false; | 
| 227 | 227 | } | 
| 228 | - return $this->id; | |
| 228 | + return $this->id; | |
| 229 | 229 | } | 
| 230 | 230 | |
| 231 | 231 | /** | 
| @@ -245,8 +245,8 @@ discard block | ||
| 245 | 245 |              throw new Exception('Could not postphone reminder' . $result->getUserInfo()); | 
| 246 | 246 | return false; | 
| 247 | 247 | } | 
| 248 | - $this->load(); | |
| 249 | - return true; | |
| 248 | + $this->load(); | |
| 249 | + return true; | |
| 250 | 250 | } | 
| 251 | 251 | |
| 252 | 252 | /** | 
| @@ -278,7 +278,7 @@ discard block | ||
| 278 | 278 |          if ($result->numRows() == 0) { | 
| 279 | 279 | return array(); | 
| 280 | 280 | } | 
| 281 | - return $result->fetchAll(MDB2_FETCHMODE_ASSOC); | |
| 281 | + return $result->fetchAll(MDB2_FETCHMODE_ASSOC); | |
| 282 | 282 | |
| 283 | 283 | } | 
| 284 | 284 | |
| @@ -297,8 +297,8 @@ discard block | ||
| 297 | 297 |              throw new Exception('Could not postphone reminder' . $result->getUserInfo()); | 
| 298 | 298 | return false; | 
| 299 | 299 | } | 
| 300 | - $this->load(); | |
| 301 | - return true; | |
| 300 | + $this->load(); | |
| 301 | + return true; | |
| 302 | 302 | |
| 303 | 303 | } | 
| 304 | 304 | |
| @@ -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(); |