diff options
Diffstat (limited to 'h-source/Library/Form/Entry.php')
-rwxr-xr-x | h-source/Library/Form/Entry.php | 10 |
1 files changed, 9 insertions, 1 deletions
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; } |