diff options
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/WebControls/TDataGridColumn.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/framework/Web/UI/WebControls/TDataGridColumn.php b/framework/Web/UI/WebControls/TDataGridColumn.php index 925fa90b..6e18a18f 100644 --- a/framework/Web/UI/WebControls/TDataGridColumn.php +++ b/framework/Web/UI/WebControls/TDataGridColumn.php @@ -256,19 +256,10 @@ abstract class TDataGridColumn extends TComponent */
protected function getDataFieldValue($data,$field)
{
- if(is_array($data))
- return $data[$field];
- else if(($data instanceof TMap) || ($data instanceof TList))
- return $data->itemAt($field);
- else if(($data instanceof TComponent) && $data->canGetProperty($field))
- {
- $getter='get'.$field;
- return $data->$getter();
- }
- else
- throw new TInvalidDataValueException('datagridcolumn_data_invalid',get_class($this),$field);
+ return TDataFieldAccessor::getDataFieldValue($data,$field);
}
+
/**
* Initializes the specified cell to its initial values.
* The default implementation sets the content of header and footer cells.
|