@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | parent::__construct($kernel, 'credit_note', $id); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param string $status |
|
| 20 | + */ |
|
| 18 | 21 | function setStatus($status) |
| 19 | 22 | { |
| 20 | 23 | $return = parent::setStatus($status); |
@@ -37,6 +40,9 @@ discard block |
||
| 37 | 40 | } |
| 38 | 41 | } |
| 39 | 42 | |
| 43 | + /** |
|
| 44 | + * @return boolean |
|
| 45 | + */ |
|
| 40 | 46 | function readyForState($year, $check_products = 'check_products') |
| 41 | 47 | { |
| 42 | 48 | if (!is_object($year)) { |
@@ -93,6 +99,14 @@ discard block |
||
| 93 | 99 | return $return; |
| 94 | 100 | } |
| 95 | 101 | |
| 102 | + /** |
|
| 103 | + * @param Year $year |
|
| 104 | + * @param integer $voucher_number |
|
| 105 | + * @param string $voucher_date |
|
| 106 | + * @param Stub_Translation $translation |
|
| 107 | + * |
|
| 108 | + * @return boolean |
|
| 109 | + */ |
|
| 96 | 110 | function state($year, $voucher_number, $voucher_date, $translation) |
| 97 | 111 | { |
| 98 | 112 | if (!is_object($year)) { |
@@ -298,6 +298,10 @@ discard block |
||
| 298 | 298 | return $this->id; |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | + /** |
|
| 302 | + * @param string $belong_to |
|
| 303 | + * @param integer $belong_to_id |
|
| 304 | + */ |
|
| 301 | 305 | function changeBelongTo($belong_to, $belong_to_id) |
| 302 | 306 | { |
| 303 | 307 | if ($this->id == 0) { |
@@ -320,6 +324,9 @@ discard block |
||
| 320 | 324 | return $this->id; |
| 321 | 325 | } |
| 322 | 326 | |
| 327 | + /** |
|
| 328 | + * @param string $status |
|
| 329 | + */ |
|
| 323 | 330 | function setStatus($status) |
| 324 | 331 | { |
| 325 | 332 | if ($this->id == 0) { |
@@ -580,7 +587,7 @@ discard block |
||
| 580 | 587 | /** |
| 581 | 588 | * returns the possible status types |
| 582 | 589 | * |
| 583 | - * @return array with status types |
|
| 590 | + * @return string[] with status types |
|
| 584 | 591 | */ |
| 585 | 592 | static function getStatusTypes() |
| 586 | 593 | { |
@@ -596,7 +603,7 @@ discard block |
||
| 596 | 603 | /** |
| 597 | 604 | * returns possible belong to types |
| 598 | 605 | * |
| 599 | - * @return array with belong to types |
|
| 606 | + * @return string[] with belong to types |
|
| 600 | 607 | */ |
| 601 | 608 | private function getBelongToTypes() |
| 602 | 609 | { |
@@ -609,7 +616,7 @@ discard block |
||
| 609 | 616 | /** |
| 610 | 617 | * returns the implemented providers |
| 611 | 618 | * |
| 612 | - * @return array with providers |
|
| 619 | + * @return string[] with providers |
|
| 613 | 620 | */ |
| 614 | 621 | static function getImplementedProviders() |
| 615 | 622 | { |
@@ -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() |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | return $this->prepareResponseData($this->cleanUpProductList($product->getRelatedProducts($currencies, 'webshop'))); |
| 591 | 591 | } |
| 592 | 592 | |
| 593 | - /** |
|
| 593 | + /** |
|
| 594 | 594 | * Gets featured products |
| 595 | 595 | * |
| 596 | 596 | * Method is experimental and only used by discimport.dk. If you need to use it |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | return $this->prepareResponseData($related_products); |
| 641 | 641 | } |
| 642 | 642 | |
| 643 | - /** |
|
| 643 | + /** |
|
| 644 | 644 | * Gets product keywords which can be used to sort ones webshop |
| 645 | 645 | * |
| 646 | 646 | * |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | return $this->prepareResponseData($product->getRelatedProducts()); |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | - /** |
|
| 236 | + /** |
|
| 237 | 237 | * Gets featured products |
| 238 | 238 | * |
| 239 | 239 | * Method is experimental and only used by discimport.dk. If you need to use it |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | return $this->prepareResponseData($related_products); |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | - /** |
|
| 280 | + /** |
|
| 281 | 281 | * Gets product keywords which can be used to sort ones webshop |
| 282 | 282 | * |
| 283 | 283 | * |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | return $product->getRelatedProducts(); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - /** |
|
| 157 | + /** |
|
| 158 | 158 | * Gets featured products |
| 159 | 159 | * |
| 160 | 160 | * Method is experimental and only used by discimport.dk. If you need to use it |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | return $related_products; |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | - /** |
|
| 201 | + /** |
|
| 202 | 202 | * Gets product keywords which can be used to sort ones webshop |
| 203 | 203 | * |
| 204 | 204 | * Method is experimental and only used by nylivsstil.dk. If you need to use it |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | return $this->prepareResponseData($this->cleanUpProductList($product->getRelatedProducts($currencies, 'webshop'))); |
| 426 | 426 | } |
| 427 | 427 | |
| 428 | - /** |
|
| 428 | + /** |
|
| 429 | 429 | * Gets featured products |
| 430 | 430 | * |
| 431 | 431 | * Method is experimental and only used by discimport.dk. If you need to use it |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | return $this->prepareResponseData($related_products); |
| 476 | 476 | } |
| 477 | 477 | |
| 478 | - /** |
|
| 478 | + /** |
|
| 479 | 479 | * Gets product keywords which can be used to sort ones webshop |
| 480 | 480 | * |
| 481 | 481 | * |