@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * Get the order via url 'ID' or form submission 'OrderID'. |
| 52 | 52 | * It will check for permission based on session stored ids or member id. |
| 53 | 53 | * |
| 54 | - * @return the order |
|
| 54 | + * @return DataObject|null order |
|
| 55 | 55 | */ |
| 56 | 56 | public function orderfromid() |
| 57 | 57 | { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | /** |
| 124 | 124 | * Build a form for cancelling, or retrying payment for a placed order. |
| 125 | 125 | * |
| 126 | - * @return Form |
|
| 126 | + * @return null|OrderActionsForm |
|
| 127 | 127 | */ |
| 128 | 128 | public function ActionsForm() |
| 129 | 129 | { |
@@ -90,7 +90,6 @@ |
||
| 90 | 90 | * Add quantity, variation and remove fields to the |
| 91 | 91 | * item set. |
| 92 | 92 | * |
| 93 | - * @param SS_List $items |
|
| 94 | 93 | */ |
| 95 | 94 | protected function editableItems() |
| 96 | 95 | { |
@@ -21,6 +21,8 @@ |
||
| 21 | 21 | * Returns the link to the checkout page on this site |
| 22 | 22 | * |
| 23 | 23 | * @param boolean $urlSegment If set to TRUE, only returns the URLSegment field |
| 24 | + * @param string $action |
|
| 25 | + * @param integer $id |
|
| 24 | 26 | * |
| 25 | 27 | * @return string Link to checkout page |
| 26 | 28 | */ |
@@ -67,6 +67,7 @@ |
||
| 67 | 67 | * Returns the first available component with the given class or interface. |
| 68 | 68 | * |
| 69 | 69 | * @param String ClassName |
| 70 | + * @param string $type |
|
| 70 | 71 | * |
| 71 | 72 | * @return GridFieldComponent |
| 72 | 73 | */ |
@@ -362,6 +362,7 @@ |
||
| 362 | 362 | /** |
| 363 | 363 | * Check if an order can be paid for. |
| 364 | 364 | * |
| 365 | + * @param DataObject $member |
|
| 365 | 366 | * @return boolean |
| 366 | 367 | */ |
| 367 | 368 | public function canPay($member = null) |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * |
| 67 | 67 | * Sets $this->Amount to the calculated value; |
| 68 | 68 | * |
| 69 | - * @param $subtotal - running total to be modified |
|
| 69 | + * @param integer $subtotal - running total to be modified |
|
| 70 | 70 | * @param $forcecalculation - force calculating the value, if order isn't in cart |
| 71 | 71 | * |
| 72 | 72 | * @return $subtotal - updated subtotal |
@@ -16,6 +16,9 @@ |
||
| 16 | 16 | |
| 17 | 17 | private static $charges_by_country = array(); |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param integer $subtotal |
|
| 21 | + */ |
|
| 19 | 22 | public function value($subtotal = null) |
| 20 | 23 | { |
| 21 | 24 | $country = $this->Country(); |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | private static $country_rates = array(); |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param integer $incoming |
|
| 20 | + */ |
|
| 18 | 21 | public function value($incoming) |
| 19 | 22 | { |
| 20 | 23 | $rate = $this->Type == "Chargable" |
@@ -37,6 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Choose maximum value to populate quantity dropdown |
| 40 | + * @param integer $qty |
|
| 40 | 41 | */ |
| 41 | 42 | public function setMaximumQuantity($qty) |
| 42 | 43 | { |
@@ -50,6 +51,9 @@ discard block |
||
| 50 | 51 | $this->saveablefields = $fields; |
| 51 | 52 | } |
| 52 | 53 | |
| 54 | + /** |
|
| 55 | + * @param AddProductForm $form |
|
| 56 | + */ |
|
| 53 | 57 | public function addtocart($data, $form) |
| 54 | 58 | { |
| 55 | 59 | if ($buyable = $this->getBuyable($data)) { |
@@ -125,7 +129,7 @@ discard block |
||
| 125 | 129 | } |
| 126 | 130 | |
| 127 | 131 | /** |
| 128 | - * @return Validator Validator for this form. |
|
| 132 | + * @return Validator|null Validator for this form. |
|
| 129 | 133 | */ |
| 130 | 134 | protected function getFormValidator() |
| 131 | 135 | { |