@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | * |
595 | 595 | * @deprecated |
596 | 596 | * |
597 | - * @return object |
|
597 | + * @return Keyword |
|
598 | 598 | */ |
599 | 599 | public function getKeywords() |
600 | 600 | { |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | /** |
605 | 605 | * Get keywords object |
606 | 606 | * |
607 | - * @return object |
|
607 | + * @return Keyword |
|
608 | 608 | */ |
609 | 609 | public function getKeyword() |
610 | 610 | { |
@@ -660,7 +660,6 @@ discard block |
||
660 | 660 | /** |
661 | 661 | * Delete all related product |
662 | 662 | * |
663 | - * @param integer $id Product id to relate to this product |
|
664 | 663 | * |
665 | 664 | * @return boolean |
666 | 665 | */ |
@@ -1040,7 +1039,7 @@ discard block |
||
1040 | 1039 | /** |
1041 | 1040 | * Gets the details |
1042 | 1041 | * |
1043 | - * @return object |
|
1042 | + * @return ProductDetail |
|
1044 | 1043 | */ |
1045 | 1044 | function getDetails() |
1046 | 1045 | { |
@@ -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 | { |