From afc02bc1c3db9ffe8c9bf660c8aa08666752edfb Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 8 May 2011 15:26:22 +0000 Subject: h-source:added new EasyGiant SVN version --- h-source/Library/Form/Entry.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'h-source/Library/Form/Entry.php') diff --git a/h-source/Library/Form/Entry.php b/h-source/Library/Form/Entry.php index 2582557..440ee2d 100755 --- a/h-source/Library/Form/Entry.php +++ b/h-source/Library/Form/Entry.php @@ -47,11 +47,19 @@ abstract class Form_Entry { return isset($this->entryClass) ? $this->entryClass : 'formEntry'; } - public function getWrapElements() + public function getWrapElements($value = null) { + //replace the ;;value;; variable + for ($i = 0; $i < count($this->wrap); $i++) + { + $this->wrap[$i] = str_replace(';;value;;',$value,$this->wrap[$i]); + } + $wrap[0] = isset($this->wrap[0]) ? $this->wrap[0] : null; $wrap[1] = isset($this->wrap[1]) ? $this->wrap[1] : null; $wrap[2] = isset($this->wrap[2]) ? $this->wrap[2] : null; + $wrap[3] = isset($this->wrap[3]) ? $this->wrap[3] : null; + $wrap[4] = isset($this->wrap[4]) ? $this->wrap[4] : null; return $wrap; } -- cgit v1.2.3