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:
Sean Harvey 2009-02-13 09:30:32 +00:00
parent 040913369d
commit 0ca4177e3b

View File

@ -71,6 +71,14 @@ abstract class DBField extends ViewableData {
return $this->name;
}
/**
* Returns the value of this field.
* @return mixed
*/
function getValue() {
return $this->value;
}
/**
* Set the value on the field.
* Optionally takes the whole record as an argument,