@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * @param DataObject $record |
| 18 | 18 | * @param string $columnName |
| 19 | 19 | * |
| 20 | - * @return string - the HTML for the column |
|
| 20 | + * @return HTMLText - the HTML for the column |
|
| 21 | 21 | */ |
| 22 | 22 | public function getColumnContent($gridField, $record, $columnName) |
| 23 | 23 | { |
@@ -54,6 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Handle the export, for both the action button and the URL |
| 57 | + * @param GridField $gridField |
|
| 57 | 58 | */ |
| 58 | 59 | public function handleSales($gridField, $request = null) |
| 59 | 60 | { |
@@ -90,7 +91,7 @@ discard block |
||
| 90 | 91 | * Generate export fields for CSV. |
| 91 | 92 | * |
| 92 | 93 | * @param GridField $gridField |
| 93 | - * @return array |
|
| 94 | + * @return string|null |
|
| 94 | 95 | */ |
| 95 | 96 | public function generateExportFileData($gridField) |
| 96 | 97 | { |
@@ -175,6 +176,9 @@ discard block |
||
| 175 | 176 | |
| 176 | 177 | private $isFirstRow = true; |
| 177 | 178 | |
| 179 | + /** |
|
| 180 | + * @param DataList $orderItems |
|
| 181 | + */ |
|
| 178 | 182 | public function generateExportFileDataDetails($email, $date, $orderItems) |
| 179 | 183 | { |
| 180 | 184 | $separator = $this->csvSeparator; |
@@ -18,7 +18,6 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @param string $targetFragment The HTML fragment to write the button into |
| 21 | - * @param array $exportColumns The columns to include in the export |
|
| 22 | 21 | */ |
| 23 | 22 | public function __construct($targetFragment = "after") |
| 24 | 23 | { |
@@ -72,6 +71,7 @@ discard block |
||
| 72 | 71 | |
| 73 | 72 | /** |
| 74 | 73 | * Handle the print, for both the action button and the URL |
| 74 | + * @param GridField $gridField |
|
| 75 | 75 | */ |
| 76 | 76 | public function handlePrint($gridField, $request = null) |
| 77 | 77 | { |
@@ -18,7 +18,6 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @param string $targetFragment The HTML fragment to write the button into |
| 21 | - * @param array $exportColumns The columns to include in the export |
|
| 22 | 21 | */ |
| 23 | 22 | public function __construct($targetFragment = "after") |
| 24 | 23 | { |
@@ -72,6 +71,7 @@ discard block |
||
| 72 | 71 | |
| 73 | 72 | /** |
| 74 | 73 | * Handle the print, for both the action button and the URL |
| 74 | + * @param GridField $gridField |
|
| 75 | 75 | */ |
| 76 | 76 | public function handlePrintAllPackingSlips($gridField, $request = null) |
| 77 | 77 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * Which columns are handled by this component |
| 86 | 86 | * |
| 87 | 87 | * @param GridField $gridField |
| 88 | - * @return array |
|
| 88 | + * @return string[] |
|
| 89 | 89 | */ |
| 90 | 90 | public function getColumnsHandled($gridField) |
| 91 | 91 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * Which GridField actions are this component handling |
| 99 | 99 | * |
| 100 | 100 | * @param GridField $gridField |
| 101 | - * @return array |
|
| 101 | + * @return string[] |
|
| 102 | 102 | */ |
| 103 | 103 | public function getActions($gridField) |
| 104 | 104 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * Which columns are handled by this component |
| 84 | 84 | * |
| 85 | 85 | * @param GridField $gridField |
| 86 | - * @return array |
|
| 86 | + * @return string[] |
|
| 87 | 87 | */ |
| 88 | 88 | public function getColumnsHandled($gridField) |
| 89 | 89 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Which GridField actions are this component handling |
| 97 | 97 | * |
| 98 | 98 | * @param GridField $gridField |
| 99 | - * @return array |
|
| 99 | + * @return string[] |
|
| 100 | 100 | */ |
| 101 | 101 | public function getActions($gridField) |
| 102 | 102 | { |
@@ -107,7 +107,6 @@ discard block |
||
| 107 | 107 | /** |
| 108 | 108 | * Handle the actions and apply any changes to the GridField |
| 109 | 109 | * |
| 110 | - * @param GridField $gridFi$gridField->getList()->remove($item);eld |
|
| 111 | 110 | * @param string $actionName |
| 112 | 111 | * @param mixed $arguments |
| 113 | 112 | * @param array $data - form data |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @param array $data Form request data submitted from OrderForm |
| 117 | 117 | * @param Form $form Form object for this action |
| 118 | - * @param HTTPRequest $request Request object for this action |
|
| 118 | + * @param SS_HTTPRequest $request Request object for this action |
|
| 119 | 119 | */ |
| 120 | 120 | public function processOrder(array $data, Form $form, SS_HTTPRequest $request) |
| 121 | 121 | { |
@@ -228,7 +228,6 @@ discard block |
||
| 228 | 228 | /** |
| 229 | 229 | * saves the form into session. |
| 230 | 230 | * |
| 231 | - * @param array $data - data from form. |
|
| 232 | 231 | */ |
| 233 | 232 | public function saveDataToSession() |
| 234 | 233 | { |
@@ -93,7 +93,6 @@ |
||
| 93 | 93 | /** |
| 94 | 94 | * saves the form into session. |
| 95 | 95 | * |
| 96 | - * @param array $data - data from form. |
|
| 97 | 96 | */ |
| 98 | 97 | public function saveDataToSession() |
| 99 | 98 | { |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | * - saved |
| 307 | 307 | * - has password. |
| 308 | 308 | * |
| 309 | - * @return bool |
|
| 309 | + * @return boolean|null |
|
| 310 | 310 | */ |
| 311 | 311 | protected function orderHasFullyOperationalMember() |
| 312 | 312 | { |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | * |
| 341 | 341 | * @param array $data Form request data submitted from OrderForm |
| 342 | 342 | * @param Form $form Form object for this action |
| 343 | - * @param HTTPRequest $request Request object for this action |
|
| 343 | + * @param SS_HTTPRequest $request Request object for this action |
|
| 344 | 344 | */ |
| 345 | 345 | public function saveAddress(array $data, Form $form, SS_HTTPRequest $request) |
| 346 | 346 | { |
@@ -426,7 +426,6 @@ discard block |
||
| 426 | 426 | /** |
| 427 | 427 | * saves the form into session. |
| 428 | 428 | * |
| 429 | - * @param array $data - data from form. |
|
| 430 | 429 | */ |
| 431 | 430 | public function saveDataToSession() |
| 432 | 431 | { |