mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
5f70af6d38
commit
e30b5e3f22
@ -235,7 +235,7 @@ class TableField extends TableListField {
|
|||||||
if($fieldset){
|
if($fieldset){
|
||||||
$newitem[ID] = "new".$k;
|
$newitem[ID] = "new".$k;
|
||||||
foreach($newitem as $k => $v){
|
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]);
|
unset($newitem[$k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -757,6 +757,12 @@ class TableField_Item extends TableListField_Item {
|
|||||||
return $content;
|
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(){
|
function IsAddRow(){
|
||||||
return $this->isAddRow;
|
return $this->isAddRow;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user