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
This commit is contained in:
Normann Lou 2008-10-16 22:22:32 +00:00
parent 5f70af6d38
commit e30b5e3f22

View File

@ -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;
}