@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Get member by unique field. |
21 | - * @return Member|null |
|
21 | + * @return DataObject|null |
|
22 | 22 | */ |
23 | 23 | public static function get_by_identifier($idvalue) |
24 | 24 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * @return Validator Validator for this form. |
|
111 | + * @return Validator|null Validator for this form. |
|
112 | 112 | */ |
113 | 113 | protected function getFormValidator() |
114 | 114 | { |
@@ -29,7 +29,6 @@ |
||
29 | 29 | /** |
30 | 30 | * Retrieve a set of products, based on the given parameters. Checks get query for sorting and pagination. |
31 | 31 | * |
32 | - * @param string $extraFilter Additional SQL filters to apply to the Product retrieval |
|
33 | 32 | * @param bool $recursive include sub-categories |
34 | 33 | * @return PaginatedList |
35 | 34 | */ |
@@ -257,7 +257,7 @@ |
||
257 | 257 | |
258 | 258 | /** |
259 | 259 | * Overloaded relationship, for getting versioned variations |
260 | - * @param boolean $current |
|
260 | + * @param boolean $forcecurrent |
|
261 | 261 | */ |
262 | 262 | public function ProductVariation($forcecurrent = false) |
263 | 263 | { |
@@ -147,6 +147,10 @@ |
||
147 | 147 | return $query; |
148 | 148 | } |
149 | 149 | |
150 | + /** |
|
151 | + * @param string $date |
|
152 | + * @param string $format |
|
153 | + */ |
|
150 | 154 | protected function fd($date, $format) |
151 | 155 | { |
152 | 156 | return DB::getConn()->formattedDatetimeClause($date, $format); |
@@ -36,7 +36,6 @@ |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Get location of user |
39 | - * @param Address $address location |
|
40 | 39 | */ |
41 | 40 | public function getAddress() |
42 | 41 | { |
@@ -85,6 +85,7 @@ discard block |
||
85 | 85 | /** |
86 | 86 | * Customer and shipping details have been added to Order, |
87 | 87 | * so that memberless (guest) orders can be placed. |
88 | + * @param Order $order |
|
88 | 89 | */ |
89 | 90 | public function migrateMemberFields($order) |
90 | 91 | { |
@@ -111,6 +112,7 @@ discard block |
||
111 | 112 | |
112 | 113 | /** |
113 | 114 | * Migrate old statuses |
115 | + * @param Order $order |
|
114 | 116 | */ |
115 | 117 | public function migrateStatuses($order) |
116 | 118 | { |
@@ -128,6 +130,7 @@ discard block |
||
128 | 130 | * Convert shipping and tax columns into modifiers |
129 | 131 | * |
130 | 132 | * Applies to pre 0.6 sites |
133 | + * @param Order $order |
|
131 | 134 | */ |
132 | 135 | public function migrateShippingValues($order) |
133 | 136 | { |
@@ -156,6 +159,7 @@ discard block |
||
156 | 159 | |
157 | 160 | /** |
158 | 161 | * Performs calculation function on un-calculated orders. |
162 | + * @param Order $order |
|
159 | 163 | */ |
160 | 164 | public function migrateOrderCalculation($order) |
161 | 165 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * Adds an item to the cart |
117 | 117 | * |
118 | 118 | * @param Buyable $buyable |
119 | - * @param number $quantity |
|
119 | + * @param integer $quantity |
|
120 | 120 | * @param unknown $filter |
121 | 121 | * |
122 | 122 | * @return boolean|OrderItem false or the new/existing item |
@@ -265,7 +265,6 @@ discard block |
||
265 | 265 | * Finds an existing order item. |
266 | 266 | * |
267 | 267 | * @param Buyable $buyable |
268 | - * @param string $filter |
|
269 | 268 | * |
270 | 269 | * @return the item requested, or false |
271 | 270 | */ |
@@ -329,6 +328,7 @@ discard block |
||
329 | 328 | |
330 | 329 | /** |
331 | 330 | * Store a new error. |
331 | + * @param string $message |
|
332 | 332 | */ |
333 | 333 | protected function error($message) |
334 | 334 | { |
@@ -422,6 +422,8 @@ discard block |
||
422 | 422 | |
423 | 423 | /** |
424 | 424 | * Helper for creating a url |
425 | + * @param string $action |
|
426 | + * @param Buyable $buyable |
|
425 | 427 | */ |
426 | 428 | protected static function build_url($action, $buyable, $params = array()) |
427 | 429 | { |
@@ -30,6 +30,9 @@ discard block |
||
30 | 30 | private static $singular_name = "Attribute"; |
31 | 31 | private static $plural_name = "Attributes"; |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $name |
|
35 | + */ |
|
33 | 36 | public static function find_or_make($name) |
34 | 37 | { |
35 | 38 | if ($type = ProductAttributeType::get() |
@@ -110,7 +113,7 @@ discard block |
||
110 | 113 | /** |
111 | 114 | * Returns a dropdown field for the user to select a variant. |
112 | 115 | * |
113 | - * @param string $emptyString |
|
116 | + * @param string $emptystring |
|
114 | 117 | * @param ArrayList $values |
115 | 118 | * |
116 | 119 | * @return DropdownField |