@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Constructor |
45 | 45 | * |
46 | - * @param object $product Product object |
|
46 | + * @param Product $product Product object |
|
47 | 47 | * @param integer $old_detail_id Only used with old product details |
48 | 48 | * |
49 | 49 | * @return void |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @param array $array_var An array with data to save, @see $this->fields |
157 | 157 | * |
158 | - * @return integer |
|
158 | + * @return boolean |
|
159 | 159 | */ |
160 | 160 | public function save($array_var) |
161 | 161 | { |
@@ -259,7 +259,6 @@ |
||
259 | 259 | /** |
260 | 260 | * Set attribute for product |
261 | 261 | * |
262 | - * @param integer $id Attribute id to relate to this product |
|
263 | 262 | * |
264 | 263 | * @return boolean |
265 | 264 | */ |
@@ -65,6 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Find a variation from id |
67 | 67 | * |
68 | + * @param integer $id |
|
68 | 69 | * @return object Intraface_modules_product_Variation_OneAttributeGroup or Intraface_modules_product_Variation_TwoAttributeGroups |
69 | 70 | */ |
70 | 71 | public function findById($id) |
@@ -82,6 +82,9 @@ |
||
82 | 82 | return $this->context->getKernel(); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @return integer |
|
87 | + */ |
|
85 | 88 | function getShopId() |
86 | 89 | { |
87 | 90 | if ($this->query('shop_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; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * @param string $headerImg The filepath for the header image |
139 | 139 | * |
140 | - * @return void |
|
140 | + * @return false|null |
|
141 | 141 | */ |
142 | 142 | public function addHeader($headerImg = '') |
143 | 143 | { |
@@ -191,6 +191,7 @@ discard block |
||
191 | 191 | * write the document to a file |
192 | 192 | * |
193 | 193 | * @param string $data The data to write |
194 | + * @param string $filnavn |
|
194 | 195 | * |
195 | 196 | * @return void |
196 | 197 | */ |
@@ -59,6 +59,9 @@ discard block |
||
59 | 59 | return $this->controlpanel_files; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $file |
|
64 | + */ |
|
62 | 65 | function addPreloadFile($file) |
63 | 66 | { |
64 | 67 | $this->preload_file[] = $file; |
@@ -81,6 +84,7 @@ discard block |
||
81 | 84 | |
82 | 85 | /** |
83 | 86 | * @todo why is this not using getPath() |
87 | + * @param string $file |
|
84 | 88 | */ |
85 | 89 | function includeSettingFile($file) |
86 | 90 | { |
@@ -351,7 +351,7 @@ |
||
351 | 351 | * @param integer $file_id Id of file in the file system |
352 | 352 | * @param string $filename Which filename to use |
353 | 353 | * |
354 | - * @return boolean |
|
354 | + * @return integer |
|
355 | 355 | */ |
356 | 356 | function attachFile($file_id, $filename) |
357 | 357 | { |
@@ -9,6 +9,9 @@ |
||
9 | 9 | */ |
10 | 10 | class Intraface_XMLRPC_CMS_Server0300 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 |