|
@@ -50,6 +50,7 @@ discard block |
|
|
block discarded – undo |
|
50
|
50
|
* |
|
51
|
51
|
* By default, this is set to true so that it's clearer what's happening, but the predefined |
|
52
|
52
|
* {@link GridFieldConfig} subclasses set this to false for flexibility. |
|
|
53
|
+ * @param boolean $throwExceptionOnBadDataType |
|
53
|
54
|
*/ |
|
54
|
55
|
public function setThrowExceptionOnBadDataType($throwExceptionOnBadDataType) { |
|
55
|
56
|
$this->throwExceptionOnBadDataType = $throwExceptionOnBadDataType; |
|
@@ -65,6 +66,7 @@ discard block |
|
|
block discarded – undo |
|
65
|
66
|
/** |
|
66
|
67
|
* Check that this dataList is of the right data type. |
|
67
|
68
|
* Returns false if it's a bad data type, and if appropriate, throws an exception. |
|
|
69
|
+ * @param SS_List $dataList |
|
68
|
70
|
*/ |
|
69
|
71
|
protected function checkDataType($dataList) { |
|
70
|
72
|
if($dataList instanceof SS_Limitable) { |
Please login to merge, or discard this patch.