|
@@ -23,6 +23,7 @@ discard block |
|
|
block discarded – undo |
|
23
|
23
|
* |
|
24
|
24
|
* By default, this is set to true so that it's clearer what's happening, but the predefined |
|
25
|
25
|
* {@link GridFieldConfig} subclasses set this to false for flexibility. |
|
|
26
|
+ * @param boolean $throwExceptionOnBadDataType |
|
26
|
27
|
*/ |
|
27
|
28
|
public function setThrowExceptionOnBadDataType($throwExceptionOnBadDataType) { |
|
28
|
29
|
$this->throwExceptionOnBadDataType = $throwExceptionOnBadDataType; |
|
@@ -38,6 +39,7 @@ discard block |
|
|
block discarded – undo |
|
38
|
39
|
/** |
|
39
|
40
|
* Check that this dataList is of the right data type. |
|
40
|
41
|
* Returns false if it's a bad data type, and if appropriate, throws an exception. |
|
|
42
|
+ * @param SS_List $dataList |
|
41
|
43
|
*/ |
|
42
|
44
|
protected function checkDataType($dataList) { |
|
43
|
45
|
if($dataList instanceof SS_Filterable) { |
Please login to merge, or discard this patch.