Renders the Fieldset to html

@param  Render $renderer

@return string

@since 2.0
17630
public function render(Render $renderer)
	{
		$legend = '';

		//Make sure the legend is added if needed
		if ( !is_null($this->getLegend()) )
		{
			$legend = Html::tag('legend', [], $this->getLegend());
		}

		//Makes sure the legend is added if one exists
		$elements = $legend;

		//Render all the elements
		foreach ( $this->getContents() as $element )
		{
			$elements .= "\n" . $renderer->render($element);
		}

		return Html::tag('fieldset', $this->getAttributes(), $elements);
	}
306044
public function render( RendererInterface $renderer )
    {
        return $renderer->translate(
            'default.' . ( $this->successful ? 'success' : 'failed' ),
            'default'
        ) . ( empty( $this->loginWith ) ? '' : ', ' . sprintf(
            $renderer->translate( 'user.action.loginWith.%s', 'user' ),
            $renderer->translate( 'user.loginWith.' . $this->loginWith, 'user' )
        ) );
    }
780366
public function getRenderer()
    {
        $collectorClass = get_class($this);
        $rendererClass = '\\' . str_replace('Collectors', 'Renderer\\Html', $collectorClass);

        if (!class_exists($rendererClass)) {
            throw new \RuntimeException('Collector ' . $collectorClass . ' is renderable but ' . $rendererClass . ' does not exist');
        }

        return new $rendererClass;
    }
1217904
public function render(HTML_QuickForm2_Renderer $renderer)
    {
        foreach ($this->rules as $rule) {
            if ($rule[1] & HTML_QuickForm2_Rule::RUNAT_CLIENT) {
                $renderer->getJavascriptBuilder()->addRule($rule[0]);
            }
        }
        $renderer->renderElement($this);
        return $renderer;
    }
907014
public function render($renderer, $sub = false)
    {
        if (!empty($this->attrs['style'])) {
            $renderer->setCurrentStyle($this->attrs['style']);
        }
        if (!empty($this->attrs['width'])) {
            $this->attrs['width'] *= 3.9;
        }

        $this->text = $this->getStart() . $this->text;
        foreach ($this->elements as $element) {
            if ($element === 'footnotetexts') {
                $renderer->Footnotes();
            } elseif ($element === 'addpage') {
                $renderer->newPage();
            } elseif ($element instanceof ReportBaseHtml) {
                $element->render($renderer, true);
            } else {
                $element->render($renderer);
            }
        }
        $this->text .= $this->getEnd();
        if ($sub) {
            return $this->text;
        }
        $renderer->writeHTML($this->text); //prints 2 empty cells in the Expanded Relatives report
    }
1135238
public function render(array $arguments = [], $renderer = null) {
        if(empty($this->itemsToDisplay)) {
            return $this->button->render($arguments);
        }

        return $this->baseRender($arguments, $renderer);
    }
399536
public function render(RendererInterface $renderer = null)
    {
        $renderer = $renderer ?: $this->getDefaultRenderer();
        $form = $this->header();
        foreach ($this->rows as $row) {
            $form .= $row->render($renderer);
        }
        $form .= '</form>';

        return $form;
    }
1187354
public function render($renderer)
    {
        $temptext = str_replace('#PAGENUM#', (string) $renderer->PageNo(), $this->text);
        // underline «title» part of Source item
        $temptext = str_replace([
            '«',
            '»',
        ], [
            '<u>',
            '</u>',
        ], $temptext);

        // Set up the text style
        if ($renderer->getCurrentStyle() !== $this->styleName) {
            $renderer->setCurrentStyle($this->styleName);
        }

        // Background color
        $match = [];
        // Indicates if the cell background must be painted (1) or transparent (0)
        if ($this->fill == 1) {
            if (!empty($this->bgcolor)) {
                // HTML color to RGB
                if (preg_match('/#?(..)(..)(..)/', $this->bgcolor, $match)) {
                    $r = hexdec($match[1]);
                    $g = hexdec($match[2]);
                    $b = hexdec($match[3]);
                    $renderer->SetFillColor($r, $g, $b);
                }
            } else {
                // If no color set then don't fill
                $this->fill = 0;
            }
        }

        // Borders
        if (!empty($this->bocolor)) {
            // HTML color to RGB
            if (preg_match('/#?(..)(..)(..)/', $this->bocolor, $match)) {
                $r = hexdec($match[1]);
                $g = hexdec($match[2]);
                $b = hexdec($match[3]);
                $renderer->SetDrawColor($r, $g, $b);
            }
        }
        // Paint the text color or they might use inherited colors by the previous function
        if (preg_match('/#?(..)(..)(..)/', $this->tcolor, $match)) {
            $r = hexdec($match[1]);
            $g = hexdec($match[2]);
            $b = hexdec($match[3]);
            $renderer->SetTextColor($r, $g, $b);
        } else {
            $renderer->SetTextColor(0, 0, 0);
        }

        // If current position (left)
        if ($this->left === ReportBaseElement::CURRENT_POSITION) {
            $cX = $renderer->GetX();
        } else {
            // For static position add margin (also updates X)
            $cX = $renderer->addMarginX($this->left);
        }

        // Check the width if set to page wide OR set by xml to larger then page wide
        if ($this->width == 0 || $this->width > $renderer->getRemainingWidthPDF()) {
            $this->width = $renderer->getRemainingWidthPDF();
        }
        // For current position
        if ($this->top === ReportBaseElement::CURRENT_POSITION) {
            $this->top = $renderer->GetY();
        } else {
            $renderer->SetY($this->top);
        }

        // Check the last cell height and adjust the current cell height if needed
        if ($renderer->lastCellHeight > $this->height) {
            $this->height = $renderer->lastCellHeight;
        }
        // Check for pagebreak
        if (!empty($temptext)) {
            $cHT = $renderer->getNumLines($temptext, $this->width);
            $cHT = $cHT * $renderer->getCellHeightRatio() * $renderer->getCurrentStyleHeight();
            $cM  = $renderer->getMargins();
            // Add padding
            if (is_array($cM['cell'])) {
                $cHT += ($cM['padding_bottom'] + $cM['padding_top']);
            } else {
                $cHT += ($cM['cell'] * 2);
            }
            // Add a new page if needed
            if ($renderer->checkPageBreakPDF($cHT)) {
                $this->top = $renderer->GetY();
            }
            $temptext = FunctionsRtl::spanLtrRtl($temptext);
        }
        // HTML ready - last value is true
        $renderer->MultiCell(
            $this->width,
            $this->height,
            $temptext,
            $this->border,
            $this->align,
            $this->fill,
            $this->newline,
            $cX,
            $this->top,
            $this->reseth,
            $this->stretch,
            true
        );
        // Reset the last cell height for the next line
        if ($this->newline >= 1) {
            $renderer->lastCellHeight = 0;
        } elseif ($renderer->lastCellHeight < $renderer->getLastH()) {
            // OR save the last height if heigher then before
            $renderer->lastCellHeight = $renderer->getLastH();
        }

        // Set up the url link if exists ontop of the cell
        if (!empty($this->url)) {
            $renderer->Link($cX, $this->top, $this->width, $this->height, $this->url);
        }
        // Reset the border and the text color to black or they will be inherited
        $renderer->SetDrawColor(0, 0, 0);
        $renderer->SetTextColor(0, 0, 0);
    }
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;
    }
1195088
public function html(PhpRenderer $renderer = null) {
        $view = new View();
        $view->setResponse(new Response());
        $resolver = new TemplateMapResolver();

        if($renderer === null) {
            $renderer = new PhpRenderer();
            $resolver->add($this->getTemplate(), $this->getDefaultTemplatePath($this->getTemplate()));
            $renderer->setResolver($resolver);
        } else {
            $renderer->resolver()->attach($resolver);
        }

        $view->getEventManager()->attach(new PhpRendererStrategy($renderer));

        $view->render($this);

        return $view->getResponse()->getContent();
    }
1092737
protected function _setRenderer($renderer)
    {
        if ($renderer !== null && !($renderer instanceof RendererInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Invalid renderer'),
                null,
                null,
                $renderer
            );
        }

        $this->renderer = $renderer;
    }
648072
public function register(Renderer $renderer) {
        $this->registerTokenRenderer(HeaderAtxRule::NAME, 'renderContent', $renderer);
        $this->registerTokenRenderer(HeaderSetextRule::NAME, 'renderContent', $renderer);
    }
941758
public function copyAssets($renderer)
    {
        // If the assets folder doesn' exist in the output path for this renderer, copy it
        $source = realpath(dirname(__FILE__));
        $assets_source = realpath($source.'/../../assets/'.$renderer);
        if (false === $assets_source) {
            //There is no assets to copy for this renderer
            return;
        }

        //first create the assets dir
        $destination = $this->outputPath.DIRECTORY_SEPARATOR.'assets';
        @mkdir($destination);

        $this->recurse_copy($assets_source, $destination.DIRECTORY_SEPARATOR.$renderer);
    }
1311254
public static function pushRenderer( $renderer )
    {
        if (! in_array( 'Altamira\ChartRenderer\RendererInterface', class_implements( $renderer ) ) ) {
            throw new \UnexpectedValueException( "Renderer must be instance of or string name of a class implementing RendererInterface" );
        }

        array_push( self::$rendererChain, $renderer );
        
        return self::getInstance();
    }
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;
    }
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);
    }
983407
public function render(Render $renderer)
	{
		$radios = [];

		foreach ($this->getContents() as $radio)
		{
			$radios[] = $renderer->render($radio);
		}

		return implode('', $radios);
	}