ENHANCEMENT: Added LiteralField::setValue() so that so that LiteralField is more compatible with other field types.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@78152 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-05-31 11:01:30 +00:00
parent 4da2743994
commit f8fff9709d

View File

@ -40,6 +40,13 @@ class LiteralField extends DatalessField {
function getContent() {
return $this->content;
}
/**
* Synonym of {@link setContent()} so that LiteralField is more compatible with other field types.
*/
function setValue($value) {
return $this->setContent($value);
}
function performReadonlyTransformation() {
$clone = clone $this;