1 | <?php |
||
12 | class GridFieldImportButton implements GridField_HTMLProvider |
||
13 | { |
||
14 | /** |
||
15 | * Fragment to write the button to |
||
16 | */ |
||
17 | protected $targetFragment; |
||
18 | |||
19 | /** |
||
20 | * @var CompositeField |
||
21 | */ |
||
22 | protected $importFormField; |
||
23 | |||
24 | /** |
||
25 | * @param string $targetFragment The HTML fragment to write the button into |
||
26 | */ |
||
27 | public function __construct($targetFragment = "after", $importFormField = null) |
||
32 | |||
33 | /** |
||
34 | * Place the export button in a <p> tag below the field |
||
35 | * |
||
36 | * @param GridField $gridField |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getHTMLFragments($gridField) |
||
66 | |||
67 | /** |
||
68 | * export is an action button |
||
69 | * |
||
70 | * @param GridField $gridField |
||
71 | * @return array |
||
72 | */ |
||
73 | public function getActions($gridField) |
||
77 | } |
||
78 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.