diff options
author | xue <> | 2006-03-17 03:16:13 +0000 |
---|---|---|
committer | xue <> | 2006-03-17 03:16:13 +0000 |
commit | 261c29ece2ccf37e6419b9886cefd29f9dbb3c89 (patch) | |
tree | bb67b9d5bb719827ead69017fd52908a6438bb23 /framework/Web/UI/WebControls/TEditCommandColumn.php | |
parent | 3ec0ec6275b1ab8a95b2696febcdd0284732fce2 (diff) |
Using constants as item types.
Diffstat (limited to 'framework/Web/UI/WebControls/TEditCommandColumn.php')
-rw-r--r-- | framework/Web/UI/WebControls/TEditCommandColumn.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TEditCommandColumn.php b/framework/Web/UI/WebControls/TEditCommandColumn.php index abc372a0..65e389bd 100644 --- a/framework/Web/UI/WebControls/TEditCommandColumn.php +++ b/framework/Web/UI/WebControls/TEditCommandColumn.php @@ -153,9 +153,9 @@ class TEditCommandColumn extends TDataGridColumn public function initializeCell($cell,$columnIndex,$itemType)
{
parent::initializeCell($cell,$columnIndex,$itemType);
- if($itemType==='Item' || $itemType==='AlternatingItem' || $itemType==='SelectedItem')
+ if($itemType===TDataGrid::IT_ITEM || $itemType===TDataGrid::IT_ALTERNATINGITEM || $itemType===TDataGrid::IT_SELECTEDITEM)
$cell->getControls()->add($this->createButton('Edit',$this->getEditText(),false,''));
- else if($itemType==='EditItem')
+ else if($itemType===TDataGrid::IT_EDITITEM)
{
$controls=$cell->getControls();
$controls->add($this->createButton('Update',$this->getUpdateText(),$this->getCausesValidation(),$this->getValidationGroup()));
|