@@ -27,6 +27,9 @@ |
||
27 | 27 | $this->actAs('Intraface_Doctrine_Template_Intranet'); |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @return string |
|
32 | + */ |
|
30 | 33 | function getId() |
31 | 34 | { |
32 | 35 | return $this->id; |
@@ -9,6 +9,9 @@ |
||
9 | 9 | public $value; |
10 | 10 | private $kernel; |
11 | 11 | |
12 | + /** |
|
13 | + * @param Intraface_modules_product_Variation $variation |
|
14 | + */ |
|
12 | 15 | function __construct($product, $variation = null) |
13 | 16 | { |
14 | 17 | $this->product = $product; |
@@ -60,6 +60,9 @@ discard block |
||
60 | 60 | return $this->controlpanel_files; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $file |
|
65 | + */ |
|
63 | 66 | function addPreloadFile($file) |
64 | 67 | { |
65 | 68 | $this->preload_file[] = $file; |
@@ -82,6 +85,7 @@ discard block |
||
82 | 85 | |
83 | 86 | /** |
84 | 87 | * @todo why is this not using getPath() |
88 | + * @param string $file |
|
85 | 89 | */ |
86 | 90 | function includeSettingFile($file) |
87 | 91 | { |
@@ -12,6 +12,9 @@ |
||
12 | 12 | private $credentials; |
13 | 13 | private $kernel; |
14 | 14 | |
15 | + /** |
|
16 | + * @param integer $site_id |
|
17 | + */ |
|
15 | 18 | private function factory($site_id) |
16 | 19 | { |
17 | 20 | if (!$this->kernel->weblogin->hasModuleAccess('cms')) { // -2 |
@@ -9,6 +9,9 @@ |
||
9 | 9 | */ |
10 | 10 | class Intraface_XMLRPC_CMS_Server0300 extends Intraface_XMLRPC_Server |
11 | 11 | { |
12 | + /** |
|
13 | + * @param integer $site_id |
|
14 | + */ |
|
12 | 15 | private function factory($site_id) |
13 | 16 | { |
14 | 17 | if (!$this->kernel->weblogin->hasModuleAccess('cms')) { // -2 |
@@ -9,6 +9,9 @@ |
||
9 | 9 | */ |
10 | 10 | class Intraface_XMLRPC_CMS_Server0400 extends Intraface_XMLRPC_Server0100 |
11 | 11 | { |
12 | + /** |
|
13 | + * @param integer $site_id |
|
14 | + */ |
|
12 | 15 | private function factory($site_id) |
13 | 16 | { |
14 | 17 | if (!$this->kernel->weblogin->hasModuleAccess('cms')) { // -2 |
@@ -263,7 +263,7 @@ |
||
263 | 263 | * Checking credentials |
264 | 264 | * |
265 | 265 | * @param struct $credentials |
266 | - * @return array |
|
266 | + * @return boolean |
|
267 | 267 | */ |
268 | 268 | protected function checkCredentials($credentials) |
269 | 269 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * |
53 | 53 | * @param struct $credentials Credentials to use the server |
54 | 54 | * |
55 | - * @return array |
|
55 | + * @return boolean |
|
56 | 56 | */ |
57 | 57 | protected function checkCredentials($credentials) |
58 | 58 | { |
@@ -399,7 +399,6 @@ discard block |
||
399 | 399 | * |
400 | 400 | * @param struct $credentials Credentials to use the server |
401 | 401 | * @param integer $shop_id Id for the shop |
402 | - * @param integer $id Product id |
|
403 | 402 | * |
404 | 403 | * @return array |
405 | 404 | */ |
@@ -578,7 +577,7 @@ discard block |
||
578 | 577 | * |
579 | 578 | * @param struct $credentials Credentials to use the server |
580 | 579 | * @param integer $shop_id Id for the shop |
581 | - * @param integer $produt_id Product id to add |
|
580 | + * @param integer $product_id Product id to add |
|
582 | 581 | * @param integer $product_variation_id Product variation id to change |
583 | 582 | * @param integer $quantity Optional quantity |
584 | 583 | * @param string $text Extra text to the itemline |
@@ -621,7 +620,7 @@ discard block |
||
621 | 620 | * @param string $text Extra text to the itemline |
622 | 621 | * @param integer $product_detail_id Product detail id |
623 | 622 | * |
624 | - * @return mixed |
|
623 | + * @return boolean |
|
625 | 624 | */ |
626 | 625 | public function changeProductInBasket($credentials, $shop_id, $product_id, $product_variation_id, $quantity, $text = '', $product_detail_id = 0) |
627 | 626 | { |
@@ -1077,6 +1076,7 @@ discard block |
||
1077 | 1076 | /** |
1078 | 1077 | * Initialize the webshop |
1079 | 1078 | * |
1079 | + * @param integer $shop_id |
|
1080 | 1080 | * @return void |
1081 | 1081 | */ |
1082 | 1082 | private function _factoryWebshop($shop_id) |