mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
ENHANCEMENT Added getValue() to DBField. This helps for unit testing DBField values.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@71833 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
040913369d
commit
0ca4177e3b
@ -71,6 +71,14 @@ abstract class DBField extends ViewableData {
|
|||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the value of this field.
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
function getValue() {
|
||||||
|
return $this->value;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value on the field.
|
* Set the value on the field.
|
||||||
* Optionally takes the whole record as an argument,
|
* Optionally takes the whole record as an argument,
|
||||||
|
Loading…
Reference in New Issue
Block a user