public function getBuffer($type = null, $name = null, $attribs = array())
	{
		// If no type is specified, return the whole buffer
		if ($type === null)
		{
			return parent::$_buffer;
		}

		$result = null;
		if (isset(parent::$_buffer[$type][$name]))
		{
			return parent::$_buffer[$type][$name];
		}

		// If the buffer has been explicitly turned off don't display or attempt to render
		if ($result === false)
		{
			return null;
		}

		$renderer = $this->loadRenderer($type);

		$this->setBuffer($renderer->render($name, $attribs, $result), $type, $name);

		return parent::$_buffer[$type][$name];
	}
public function getBuffer($type = null, $name = null, $attribs = array())
	{
		// If no type is specified, return the whole buffer
		if ($type === null)
		{
			return parent::$_buffer;
		}

		$result = null;
		if (isset(parent::$_buffer[$type][$name]))
		{
			return parent::$_buffer[$type][$name];
		}

		// If the buffer has been explicitly turned off don't display or attempt to render
		if ($result === false)
		{
			return null;
		}

		$renderer = $this->loadRenderer($type);

		$this->setBuffer($renderer->render($name, $attribs, $result), $type, $name);

		return parent::$_buffer[$type][$name];
	}
public function getBuffer ( $ type = null , $ name = null , $ attribs = array ( ) ) { // If no type is specified, return the whole buffer if ( $ type === null ) { return parent :: $ _buffer ; } $ result = null ; if ( isset ( parent :: $ _buffer [ $ type ] [ $ name ] ) ) { return parent :: $ _buffer [ $ type ] [ $ name ] ; } // If the buffer has been explicitly turned off don't display or attempt to render if ( $ result === false ) { return null ; } $ renderer = $ this -> loadRenderer ( $ type ) ; $ this -> setBuffer ( $ renderer -> render ( $ name , $ attribs , $ result ) , $ type , $ name ) ; return parent :: $ _buffer [ $ type ] [ $ name ] ; }
Get the contents of a document include

@param   string  $type     The type of renderer
@param   string  $name     The name of the element to render
@param   array   $attribs  Associative array of remaining attributes.
@return  The output of the renderer
Get the contents of a document include