@@ -6,6 +6,9 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | interface Observer |
| 8 | 8 | {
|
| 9 | + /** |
|
| 10 | + * @return boolean |
|
| 11 | + */ |
|
| 9 | 12 | function update($code, $msg); |
| 10 | 13 | } |
| 11 | 14 | |
@@ -47,6 +50,9 @@ discard block |
||
| 47 | 50 | } |
| 48 | 51 | } |
| 49 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $table |
|
| 55 | + */ |
|
| 50 | 56 | function tableExists($table) |
| 51 | 57 | {
|
| 52 | 58 | $this->db->loadModule('Manager', null, true);
|
@@ -169,8 +169,6 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * getModule() |
| 171 | 171 | * |
| 172 | - * @param string $module_name |
|
| 173 | - * |
|
| 174 | 172 | * @return object |
| 175 | 173 | */ |
| 176 | 174 | function getModule($name) |
@@ -250,6 +248,9 @@ discard block |
||
| 250 | 248 | return false; |
| 251 | 249 | } |
| 252 | 250 | |
| 251 | + /** |
|
| 252 | + * @param string $name |
|
| 253 | + */ |
|
| 253 | 254 | private static function isValidModuleName($name) |
| 254 | 255 | {
|
| 255 | 256 | return preg_match("/^[a-z0-9]+$/", $name);
|
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * @deprecated |
| 115 | 115 | * @param integer $account_number |
| 116 | 116 | * |
| 117 | - * @return object |
|
| 117 | + * @return double |
|
| 118 | 118 | */ |
| 119 | 119 | public static function factory($year, $account_number) |
| 120 | 120 | {
|
@@ -451,7 +451,7 @@ discard block |
||
| 451 | 451 | * @param $date_from (date) yyyy-mm-dd Der s�ges jo kun i indev�rende �r |
| 452 | 452 | * @param $date_to (date) yyyy-mm-dd Der s�ges kun i indev�rende �r |
| 453 | 453 | * |
| 454 | - * @return (array) med debet, credit og total saldo |
|
| 454 | + * @return boolean med debet, credit og total saldo |
|
| 455 | 455 | * |
| 456 | 456 | * |
| 457 | 457 | * |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @deprecated |
| 67 | 67 | * @param $id |
| 68 | - * @return unknown_type |
|
| 68 | + * @return Account |
|
| 69 | 69 | */ |
| 70 | 70 | function findFromId($id) |
| 71 | 71 | { |
@@ -78,6 +78,9 @@ discard block |
||
| 78 | 78 | return new Account($this->year, $id); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $type |
|
| 83 | + */ |
|
| 81 | 84 | function findByType($type, $saldo = false) |
| 82 | 85 | { |
| 83 | 86 | return $this->getList($type, $saldo); |
@@ -36,6 +36,9 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param integer $post_id |
|
| 41 | + */ |
|
| 39 | 42 | public function factory($year, $post_id) |
| 40 | 43 | {
|
| 41 | 44 | return Intraface_modules_accounting_PostGateway::getFromYearAndPostId($year, $post_id); |
@@ -76,6 +79,13 @@ discard block |
||
| 76 | 79 | return 1; |
| 77 | 80 | } |
| 78 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $date |
|
| 84 | + * @param integer $account_id |
|
| 85 | + * @param string $text |
|
| 86 | + * @param double $debet |
|
| 87 | + * @param double $credit |
|
| 88 | + */ |
|
| 79 | 89 | private function validate($date, $account_id, $text, $debet, $credit) |
| 80 | 90 | {
|
| 81 | 91 | $validator = new Intraface_Validator($this->error); |
@@ -99,9 +109,7 @@ discard block |
||
| 99 | 109 | /** |
| 100 | 110 | * States the posts |
| 101 | 111 | * |
| 102 | - * @param integer $year_id |
|
| 103 | 112 | * @param string $date |
| 104 | - * @param string $voucher_number |
|
| 105 | 113 | * @param string $text |
| 106 | 114 | * @param integer $account_id |
| 107 | 115 | * @param float $debet |
@@ -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 | { |
@@ -22,8 +22,6 @@ discard block |
||
| 22 | 22 | * Constructor |
| 23 | 23 | * |
| 24 | 24 | * @param object $year_object |
| 25 | - * @param integer $post_id (optional) |
|
| 26 | - * |
|
| 27 | 25 | * @return void |
| 28 | 26 | */ |
| 29 | 27 | function __construct($year_object, $id = 0) |
@@ -45,7 +43,7 @@ discard block |
||
| 45 | 43 | * @param object $year |
| 46 | 44 | * @param string $voucher_number |
| 47 | 45 | * |
| 48 | - * @return void |
|
| 46 | + * @return Voucher |
|
| 49 | 47 | */ |
| 50 | 48 | function factory($year, $voucher_number) |
| 51 | 49 | {
|
@@ -339,9 +337,7 @@ discard block |
||
| 339 | 337 | /** |
| 340 | 338 | * Prepares amounts for stating, e.g. whether the accounts needs vat calculations |
| 341 | 339 | * |
| 342 | - * @param integer $year_id |
|
| 343 | 340 | * @param string $date |
| 344 | - * @param string $voucher_number |
|
| 345 | 341 | * @param string $text |
| 346 | 342 | * @param integer $account_id |
| 347 | 343 | * @param float $debet |
@@ -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 | { |