1 | <?php |
||
26 | class GridFieldQueuedJobExecute implements GridField_ColumnProvider, GridField_ActionProvider |
||
27 | { |
||
28 | |||
29 | protected $action = 'execute'; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $icons = array( |
||
35 | 'execute' => 'navigation', |
||
36 | 'pause' => 'minus-circle_disabled', |
||
37 | 'resume' => 'arrow-circle-double', |
||
38 | ); |
||
39 | |||
40 | /** |
||
41 | * Call back to see if the record's action icon should be shown. |
||
42 | * |
||
43 | * @var closure |
||
44 | */ |
||
45 | protected $viewCheck; |
||
46 | |||
47 | /** |
||
48 | * @param string $action |
||
49 | * @param callable $check |
||
50 | */ |
||
51 | public function __construct($action = 'execute', $check = null) |
||
62 | |||
63 | /** |
||
64 | * Add a column 'Delete' |
||
65 | * |
||
66 | * @param GridField $gridField |
||
67 | * @param array $columns |
||
68 | */ |
||
69 | public function augmentColumns($gridField, &$columns) |
||
75 | |||
76 | /** |
||
77 | * Return any special attributes that will be used for FormField::createTag() |
||
78 | * |
||
79 | * @param GridField $gridField |
||
80 | * @param DataObject $record |
||
81 | * @param string $columnName |
||
82 | * @return array |
||
83 | */ |
||
84 | public function getColumnAttributes($gridField, $record, $columnName) |
||
88 | |||
89 | /** |
||
90 | * Add the title |
||
91 | * |
||
92 | * @param GridField $gridField |
||
93 | * @param string $columnName |
||
94 | * @return array |
||
95 | */ |
||
96 | public function getColumnMetadata($gridField, $columnName) |
||
102 | |||
103 | /** |
||
104 | * Which columns are handled by this component |
||
105 | * |
||
106 | * @param GridField $gridField |
||
107 | * @return array |
||
108 | */ |
||
109 | public function getColumnsHandled($gridField) |
||
113 | |||
114 | /** |
||
115 | * Which GridField actions are this component handling |
||
116 | * |
||
117 | * @param GridField $gridField |
||
118 | * @return array |
||
119 | */ |
||
120 | public function getActions($gridField) |
||
124 | |||
125 | /** |
||
126 | * @param GridField $gridField |
||
127 | * @param DataObject $record |
||
128 | * @param string $columnName |
||
129 | * @return string|void - the HTML for the column |
||
130 | */ |
||
131 | public function getColumnContent($gridField, $record, $columnName) |
||
154 | |||
155 | /** |
||
156 | * Handle the actions and apply any changes to the GridField |
||
157 | * |
||
158 | * @param GridField $gridField |
||
159 | * @param string $actionName |
||
160 | * @param mixed $arguments |
||
161 | * @param array $data - form data |
||
162 | * @return void |
||
163 | */ |
||
164 | public function handleAction(GridField $gridField, $actionName, $arguments, $data) |
||
176 | } |
||
177 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..