@@ -84,7 +84,6 @@ |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * @param array $availableClasses - e.g. Array(MyFavouriteClassName, MyOtherFavouriteClassName) |
|
88 | 87 | */ |
89 | 88 | public function setAvailableClasses(array $array) |
90 | 89 | { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * alias of OrderItem. |
107 | 107 | * |
108 | - * @return OrderItem |
|
108 | + * @return Order |
|
109 | 109 | **/ |
110 | 110 | public function Item() |
111 | 111 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
116 | - * @return OrderItem |
|
116 | + * @return Order |
|
117 | 117 | **/ |
118 | 118 | public function OrderItem() |
119 | 119 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | - * @return string (HTML) |
|
188 | + * @return HTMLText (HTML) |
|
189 | 189 | **/ |
190 | 190 | public function forTemplate() |
191 | 191 | { |
@@ -11,6 +11,10 @@ discard block |
||
11 | 11 | **/ |
12 | 12 | class ExpiryDateField extends TextField |
13 | 13 | { |
14 | + /** |
|
15 | + * @param string $name |
|
16 | + * @param string $title |
|
17 | + */ |
|
14 | 18 | public function __construct($name, $title = null, $value = '', $form = null) |
15 | 19 | { |
16 | 20 | /* |
@@ -44,7 +48,7 @@ discard block |
||
44 | 48 | } |
45 | 49 | |
46 | 50 | /** |
47 | - *@return HTML |
|
51 | + *@return string |
|
48 | 52 | **/ |
49 | 53 | public function Field($properties = array()) |
50 | 54 | { |
@@ -223,7 +227,7 @@ discard block |
||
223 | 227 | /** |
224 | 228 | * @param string $title |
225 | 229 | * |
226 | - * @return ConfirmedPasswordField |
|
230 | + * @return ExpiryDateField |
|
227 | 231 | */ |
228 | 232 | public function setRightTitle($title) |
229 | 233 | { |
@@ -262,9 +266,9 @@ discard block |
||
262 | 266 | * Value is sometimes an array, and sometimes a single value, so we need |
263 | 267 | * to handle both cases. |
264 | 268 | * |
265 | - * @param mixed $value |
|
269 | + * @param string $value |
|
266 | 270 | * |
267 | - * @return ConfirmedPasswordField |
|
271 | + * @return ExpiryDateField |
|
268 | 272 | */ |
269 | 273 | public function setValue($value, $data = null) |
270 | 274 | { |
@@ -129,7 +129,7 @@ |
||
129 | 129 | /** |
130 | 130 | * standard SS method. |
131 | 131 | * |
132 | - * @return Field |
|
132 | + * @return OrderStepField |
|
133 | 133 | */ |
134 | 134 | public function performReadonlyTransformation() |
135 | 135 | { |
@@ -118,7 +118,6 @@ |
||
118 | 118 | * |
119 | 119 | * @link $record}, with the same name as the field name. |
120 | 120 | * |
121 | - * @param Form $form Reference to the container form |
|
122 | 121 | */ |
123 | 122 | public function __construct($name, $title = null, SS_List $items = null) |
124 | 123 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * Standard SS method - returns the string for the Field. |
41 | 41 | * Note that we include JS from this method. |
42 | 42 | * |
43 | - * @return HTML |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public function Field($properties = array()) |
46 | 46 | { |
@@ -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 | { |