From e30b5e3f22dcb5fd4926c26952641c0af3a3812a Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Thu, 16 Oct 2008 22:22:32 +0000 Subject: [PATCH] MINOR: documenting my new method, correct a coding convention about whitespace git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64460 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableField.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/forms/TableField.php b/forms/TableField.php index 478f8a515..af2573d21 100644 --- a/forms/TableField.php +++ b/forms/TableField.php @@ -235,7 +235,7 @@ class TableField extends TableListField { if($fieldset){ $newitem[ID] = "new".$k; foreach($newitem as $k => $v){ - if($this->extraData&&array_key_exists($k, $this->extraData)){ + if($this->extraData && array_key_exists($k, $this->extraData)){ unset($newitem[$k]); } } @@ -757,6 +757,12 @@ class TableField_Item extends TableListField_Item { return $content; } + /** + * Get the flag isAddRow of this item, + * to indicate if the item is that blank last row in the table which is not in the database + * + * @return boolean + */ function IsAddRow(){ return $this->isAddRow; }