@@ -31,7 +31,7 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Return a link to view the order on the account page. |
| 33 | 33 | * |
| 34 | - * @param int|string $orderID ID of the order |
|
| 34 | + * @param integer $orderID ID of the order |
|
| 35 | 35 | * @param boolean $urlSegment Return the URLSegment only |
| 36 | 36 | * |
| 37 | 37 | * @return string |
@@ -27,6 +27,10 @@ |
||
| 27 | 27 | |
| 28 | 28 | protected $order; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param ContentController $controller |
|
| 32 | + * @param string $name |
|
| 33 | + */ |
|
| 30 | 34 | public function __construct($controller, $name, Order $order) |
| 31 | 35 | { |
| 32 | 36 | $this->order = $order; |
@@ -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 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Build a form for cancelling, or retrying payment for a placed order. |
| 126 | 126 | * |
| 127 | - * @return Form |
|
| 127 | + * @return null|OrderActionsForm |
|
| 128 | 128 | */ |
| 129 | 129 | public function ActionsForm() |
| 130 | 130 | { |
@@ -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 | */ |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | * Get form fields for manipulating the current order, |
| 23 | 23 | * according to the responsibilty of this component. |
| 24 | 24 | * |
| 25 | - * @param Form $form the form being updated |
|
| 26 | 25 | * |
| 27 | 26 | * @throws Exception |
| 28 | 27 | * @return FieldList fields for manipulating order |
@@ -69,6 +69,7 @@ |
||
| 69 | 69 | * Returns the first available component with the given class or interface. |
| 70 | 70 | * |
| 71 | 71 | * @param String ClassName |
| 72 | + * @param string $type |
|
| 72 | 73 | * |
| 73 | 74 | * @return GridFieldComponent |
| 74 | 75 | */ |
@@ -165,6 +165,7 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | 167 | * Create a new payment for an order |
| 168 | + * @param string $gateway |
|
| 168 | 169 | */ |
| 169 | 170 | public function createPayment($gateway) |
| 170 | 171 | { |
@@ -227,7 +228,7 @@ discard block |
||
| 227 | 228 | /** |
| 228 | 229 | * Determine if an order can be placed. |
| 229 | 230 | * |
| 230 | - * @param boolean $order |
|
| 231 | + * @param Order $order |
|
| 231 | 232 | */ |
| 232 | 233 | public function canPlace(Order $order) |
| 233 | 234 | { |
@@ -252,7 +253,6 @@ discard block |
||
| 252 | 253 | /** |
| 253 | 254 | * Takes an order from being a cart to awaiting payment. |
| 254 | 255 | * |
| 255 | - * @param Member $member - assign a member to the order |
|
| 256 | 256 | * |
| 257 | 257 | * @return boolean - success/failure |
| 258 | 258 | */ |
@@ -58,6 +58,9 @@ |
||
| 58 | 58 | $countriestab->setTitle(_t('ShopConfig.AllowedCountriesTabTitle', "Allowed Countries")); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @return string |
|
| 63 | + */ |
|
| 61 | 64 | public static function get_base_currency() |
| 62 | 65 | { |
| 63 | 66 | return self::config()->base_currency; |