| @@ 10-17 (lines=8) @@ | ||
| 7 | 	public function getUrl($url){ | |
| 8 | return $url; | |
| 9 | } | |
| 10 | 	public function addViewElement($identifier,$content,$view){ | |
| 11 | 		$controls=$view->__get("q"); | |
| 12 | 		if (isset($controls) === false) { | |
| 13 | $controls=array (); | |
| 14 | } | |
| 15 | $controls[$identifier]=$content; | |
| 16 | 		$view->__set("q", $controls); | |
| 17 | } | |
| 18 | ||
| 19 | 	public function createScriptVariable($view,$view_var, $output){ | |
| 20 | $view->__set($view_var,$output); | |
| @@ 25-32 (lines=8) @@ | ||
| 22 | 		return $this->_di->get("url")->get($url); | |
| 23 | } | |
| 24 | ||
| 25 | 	public function addViewElement($identifier,$content,$view){ | |
| 26 | 		$controls=$view->getVar("q"); | |
| 27 | 		if (isset($controls) === false) { | |
| 28 | $controls=array (); | |
| 29 | } | |
| 30 | $controls[$identifier]=$content; | |
| 31 | 		$view->setVar("q", $controls); | |
| 32 | } | |
| 33 | ||
| 34 | 	public function createScriptVariable($view,$view_var, $output){ | |
| 35 | $view->setVar($view_var,$output); | |