Renders the form using the given renderer

@param    HTML_QuickForm2_Renderer    Renderer instance
@return   HTML_QuickForm2_Renderer
337089
public function render(HTML_QuickForm2_Renderer $renderer)
    {
        $renderer->startForm($this);
        $renderer->getJavascriptBuilder()->startForm($this);
        foreach ($this as $element) {
            $element->render($renderer);
        }
        $renderer->finishForm($this);
        return $renderer;
    }
81173
public function getRenderer()
    {
        if ($this->renderer === null) {
            $this->renderer = Services::renderer();
        }
        return $this->renderer;
    }
911858
public function render(Render $renderer)
	{
		$content = '';

		foreach ( $this->getContents() as $option )
		{
			$content .= "\n" . $renderer->render($option);
		}

		return Html::tag('select', $this->getAttributes(), $content);
	}
94656
public function HTML_QuickForm_Renderer_Array($collectHidden = false, $staticLabels = false) {
        debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
        self::__construct($collectHidden, $staticLabels);
    }
123398
public function renderElement(HTML_QuickForm2_Node $element) {
        $ary = $this->buildCommonFields($element) + array(
            'html' => $element->__toString(),
            'value' => $element->getValue(),
            'type' => $element->getType(),
            'required' => $element->isRequired(),
            'col_wrap' => isset($element->col_wrap)?$element->col_wrap:'',
            'wrap_class' => isset($element->wrap_class)?$element->wrap_class:'',
            'element_size' => isset($element->element_size)?$element->element_size:'',
        );
        $this->pushScalar($ary);
    }
1347630
protected function getRenderer()
    {
        if ($this->renderer === null) {
            $this->renderer = $this->serviceLocator->get('ViewRenderer');
        }

        return $this->renderer;
    }
1182121
public function render(array $arguments = [], $renderer = null) {
        if($renderer === null) {
            if(static::$defaultRenderer === null) {
                throw new Exception('No Default Renderer Exists for Class ' . get_class());
            } else {
                if(is_callable(static::$defaultRenderer)) {
                    $callable = static::$defaultRenderer;
                    static::$defaultRenderer = $callable();
                }
                $renderer = static::$defaultRenderer;
            }
        } else {
            if(is_callable($renderer)) {
                $renderer = $renderer();
            }
        }

        return $renderer->render($this, $arguments);
    }
53691
public function render()
	{
		/** @var BootstrapRenderer $renderer */
		$renderer = $this->container->form->renderer;

		$element = $renderer->configElem(RendererConfig::gridRow, $this->elementPrototype);
		foreach ($this->cells as $cell) {
			$cellHtml = $cell->render();
			$element->addHtml($cellHtml);
		}

		return $element;
	}
768136
public Renderer getViewRenderer() {
        if (viewRenderer != null) {
            return viewRenderer;
        }
        viewRenderer = (Renderer) ContainerManager.getComponent("viewRenderer");
        return viewRenderer;
    }
614513
protected function renderFormActions()
    {
        $rowPlugin = $this->getRowPlugin();

        if (!empty($this->formActionElements)) {
            $this->getElement()->addChild($rowPlugin($this->formActionElements, true)->getElement());
        }

        return $this;
    }
583416
private function getRenderer() {
        if(!is_object($this->renderInst)) {
            $class=self::$renderer;
            $this->renderInst=new $class();
        }
        
        return $this->renderInst;
    }
546514
def render_formset(formset, **kwargs):
    
    renderer_cls = get_formset_renderer(**kwargs)
    return renderer_cls(formset, **kwargs).render()
622952
public function display(core_backup_renderer $renderer) {

        $form = $this->initialise_stage_form();
        // A nasty hack follows to work around the sad fact that moodle quickforms
        // do not allow to actually return the HTML content, just to echo it.
        flush();
        ob_start();
        $form->display();
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
856335
@Override
	public LayerRenderer getRenderer() {
		if (renderer == null) {
			renderer = new DomTileLevelLayerRenderer(viewPort, this, eventBus) {

				@Override
				public TileLevelRenderer createNewScaleRenderer(int tileLevel, View view, HtmlContainer container) {
					return new DomTileLevelRenderer(AbstractTileBasedLayer.this, tileLevel, viewPort, container,
							getTileRenderer());
				}
			};
		}
		return renderer;
	}
69839
public function renderElement(\HTML_QuickForm2_Node $element) {
        $ary = $this->buildCommonFields($element) + [
                'html'              => $element->__toString(),
                'value'             => $element->getValue(),
                'type'              => $element->getType(),
                'label'             => $element->getLabel(),
                'desc'              => $element->getDesc(),
                'example'           => $element->getExample(),
                'placeholder'       => $element->getPlaceholder(),
                'example_is_append' => $element->getExampleIsAppend(),
                'prepend'           => $element->getPrepend(),
                'append'            => $element->getAppend(),
                'tpl'               => $element->getTpl(),
                'required'          => $element->isRequired(),
                'is_inline'         => $element->getIsInline(),
                'wrap_class'        => $element->getWrapClass(),
                'checked'           => $element->getAttribute('checked'),
            ];
        $this->pushScalar($ary);
    }
414540
function toHtml() {
        include_once('HTML/QuickForm/Renderer/Default.php');
        $renderer = new HTML_QuickForm_Renderer_Default();
        $renderer->setElementTemplate('{element}');
        parent::accept($renderer);
        return $renderer->toHtml();
    }
1317373
function Renderer(options) {
  options = options || {};
  this.MD   = new MDRenderer(options);
  this.CGMD = new CGMDRenderer(new MDRenderer(options));

  return this;
}