diff options
| author | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:26:22 +0000 | 
|---|---|---|
| committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:26:22 +0000 | 
| commit | afc02bc1c3db9ffe8c9bf660c8aa08666752edfb (patch) | |
| tree | 9a02b06b390dd0c1e796474b888e92c245473424 /h-source/Library/Form/Entry.php | |
| parent | 7fdac301801bc44f6fdb343187413bdfd2d5366c (diff) | |
h-source:added new EasyGiant SVN version
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;  	}  | 
