From f8fff9709d48a591345ac00505eb353a06ce23c5 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 31 May 2009 11:01:30 +0000 Subject: [PATCH] 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 --- forms/LiteralField.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/forms/LiteralField.php b/forms/LiteralField.php index 1ebf907ff..6fa045e2e 100755 --- a/forms/LiteralField.php +++ b/forms/LiteralField.php @@ -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;