From 676e29fefef3efbc12f87478c1c59f79cde91e40 Mon Sep 17 00:00:00 2001 From: vasu Date: Sun, 23 Dec 2012 19:30:21 +0400 Subject: [PATCH] add proximal method to Form --- core/Form/PlainForm.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/Form/PlainForm.class.php b/core/Form/PlainForm.class.php index 303ec94c9d..51665ca774 100644 --- a/core/Form/PlainForm.class.php +++ b/core/Form/PlainForm.class.php @@ -116,6 +116,15 @@ public function getRawValue($name) return $this->get($name)->getRawValue(); } + public function getValueOrDefault($name) + { + return $this->get($name)->getValueOrDefault(); + } + + /** + * @deprecated since version 1.0 + * @see getValueOrDefault + */ public function getActualValue($name) { return $this->get($name)->getActualValue(); @@ -160,4 +169,4 @@ public function getPrimitiveList() return $this->primitives; } } -?> \ No newline at end of file + \ No newline at end of file