src/core/framework/core/3rdparty/dwoo/Dwoo/Adapters/Agavi/DwooRenderer.php
public function render(AgaviTemplateLayer $layer, array &$attributes = array(), array &$slots = array(), array &$moreAssigns = array())
	{
		$engine = $this->getEngine();

		$data = array();
		if($this->extractVars) {
			$data = $attributes;
		} else {
			$data[$this->varName] = &$attributes;
		}

		$data[$this->slotsVarName] =& $slots;

		foreach($this->assigns as $key => $getter) {
			$data[$key] = $this->context->$getter();
		}

		foreach($moreAssigns as $key => &$value) {
			if(isset($this->moreAssignNames[$key])) {
				$key = $this->moreAssignNames[$key];
			}
			$data[$key] =& $value;
		}

		return $engine->get($layer->getResourceStreamIdentifier(), $data);
	}
public function render(AgaviTemplateLayer $layer, array &$attributes = array(), array &$slots = array(), array &$moreAssigns = array())
	{
		$engine = $this->getEngine();

		$data = array();
		if($this->extractVars) {
			$data = $attributes;
		} else {
			$data[$this->varName] = &$attributes;
		}

		$data[$this->slotsVarName] =& $slots;

		foreach($this->assigns as $key => $getter) {
			$data[$key] = $this->context->$getter();
		}

		foreach($moreAssigns as $key => &$value) {
			if(isset($this->moreAssignNames[$key])) {
				$key = $this->moreAssignNames[$key];
			}
			$data[$key] =& $value;
		}

		return $engine->get($layer->getResourceStreamIdentifier(), $data);
	}
public function render ( AgaviTemplateLayer $ layer , array & $ attributes = array ( ) , array & $ slots = array ( ) , array & $ moreAssigns = array ( ) ) { $ engine = $ this -> getEngine ( ) ; $ data = array ( ) ; if ( $ this -> extractVars ) { $ data = $ attributes ; } else { $ data [ $ this -> varName ] = & $ attributes ; } $ data [ $ this -> slotsVarName ] = & $ slots ; foreach ( $ this -> assigns as $ key => $ getter ) { $ data [ $ key ] = $ this -> context -> $ getter ( ) ; } foreach ( $ moreAssigns as $ key => & $ value ) { if ( isset ( $ this -> moreAssignNames [ $ key ] ) ) { $ key = $ this -> moreAssignNames [ $ key ] ; } $ data [ $ key ] = & $ value ; } return $ engine -> get ( $ layer -> getResourceStreamIdentifier ( ) , $ data ) ; }
Render the presentation and return the result.

@param      AgaviTemplateLayer The template layer to render.
@param      array              The template variables.
@param      array              The slots.
@param      array              Associative array of additional assigns.

@return     string A rendered result.
Render the presentation and return the result .