Render the element

@param  Descriptor $descriptor
@param  bool       $isChild
@param  string     $linkTitle
@return string
167105
protected function renderElement(Descriptor $descriptor) {
		$element = $this->renderElementInner($descriptor);
		
		if ($descriptor->hasChildren()) {
			$tagsLocator = $this->getTagsLocator();
			
			$children = $this->renderChildren($descriptor);
			$element  = $tagsLocator->link->render() . $element;
			
			return $children . $tagsLocator->wrapper->render($element);
		}
		
		return $element;
	}
1036872
public function renderInfo($title, $subtitle, $description = null)
    {
        $output = wordwrap(strtoupper($title), self::config()->columns) . "\n";
        $output .= wordwrap($subtitle, self::config()->columns) . "\n";
        $output .= str_repeat('-', min(self::config()->columns, max(strlen($title), strlen($subtitle)))) . "\n";
        $output .= wordwrap($description, self::config()->columns) . "\n\n";

        return $output;
    }
506715
protected function renderControlWrapper($id, $element, $elementString, $description, $wrapper = null)
    {
        if (!$wrapper) {
            if ($element instanceof ButtonElement || $element instanceof SubmitElement) {
                return $elementString . $description;
            }
            $wrapper = $this->controlWrapper;
        }
        return sprintf($wrapper, $id, $elementString, $description);
    }
187673
protected function post(RequestDescriptor $descriptor)
    {
        if (!array_key_exists('Content-Type', $descriptor->getHeaders()) && !empty($descriptor->getBodyParams())) {
            $descriptor->addHeader('Content-Type', 'application/x-www-form-urlencoded');
        }
        
        $request = new Request(
            $descriptor->getMethod(),
            $descriptor->getUrl(),
            $descriptor->getHeaders(),
            $descriptor->fetchBody()
        );

        return $request;
    }
921549
public static function anchor($uri, $title = null, array $attributes = null)
    {
        if ($title === null)
        {
            $title = $uri;
        }

        $attributes['href'] = $uri;

        return (new A($attributes, $title))->render();
    }
1343504
public function render(Document $reportDom, Config $config)
    {
        foreach ($reportDom->firstChild->query('./report') as $reportEl) {
            $title = $reportEl->getAttribute('title');

            if ($title) {
                $this->output->writeln(sprintf('<title>%s</title>', $title));
                $this->output->writeln(sprintf('<title>%s</title>', str_repeat('=', strlen($title))));
                $this->output->write(PHP_EOL);
            }

            foreach ($reportEl->query('./description') as $descriptionEl) {
                $this->output->writeln(sprintf('<description>%s</description>', $descriptionEl->nodeValue));
                $this->output->writeln('');
            }

            foreach ($reportEl->query('.//table') as $tableEl) {
                $this->output->writeln(sprintf('<subtitle>%s</subtitle>', $tableEl->getAttribute('title')));
                $this->renderTableElement($tableEl, $config);
            }
        }
    }
1289
public function renderContainer($layout = null, $title = null)
    {
        return sprintf(
            "<div class=\"%s\">\n%s</div>\n",
            $this->getContainerClass(),
            $this->renderChildren($layout, $title)
        );
    }
1360083
public function render(ElementInterface $element, $blockWrapper = null, $inlineWrapper = null)
    {
        $html   = '';
        $inline = $element->getOption('help-inline');
        $block  = $element->getOption('help-block');
        if ($inline) {
            $html .= sprintf($inlineWrapper ?: $this->inlineWrapper, $inline);
        }
        if ($block) {
            $html .= sprintf($blockWrapper ?: $this->blockWrapper, $block);
        }
        return $html;
    }
350704
private function resolveSeeAndLinkTags(DescriptorAbstract $descriptor): void
    {
        // store descriptor to use it in the resolveTag method
        $this->descriptor = $descriptor;

        $descriptor->setDescription(
            preg_replace_callback(
                self::REGEX_INLINE_LINK_OR_SEE_TAG,
                [$this, 'resolveTag'],
                $descriptor->getDescription()
            )
        );
    }
353662
public function render($src, $class = '', $id = '', array $attrs = array())
    {
        $attrs = array_merge(array(
            'frameborder' => 0,
            'content'     => null,
            'tag'         => 'iframe',
            'src'         => Str::trim($src)
        ), $attrs);

        $attrs   = $this->_cleanAttrs($attrs);
        $content = $attrs['content'];
        unset($attrs['content']);

        return Html::_('tag')->render($content, Str::trim($class), Str::trim($id), $attrs);
    }
460833
public function renderTitle($tag = 'h1', $content = null)
    {
        if (null === $content && null !== $page = $this->getPage()) {
            $content = $page->getTitle();

            // Tags the response as Page relative
            $this->tagManager->addTags($page->getEntityTag());
        }

        if (0 == strlen($content)) {
            $content = 'Undefined title';
        }

        return $this->renderTag($tag, $content);
    }
754326
private function renderElement($page, $title, $class = '')
    {
        $href = sprintf($this->htmlHref, $this->currentUri, $page);
        $href .= $this->getUrlParams();

        $element = sprintf($this->htmlAHref, $href, $title);
        return sprintf($this->htmlElement, $class, $element);
    }
1351233
protected function renderDescription($text, $isFieldset = false)
    {
        $output = '';

        // Help text.
        if (!empty($text)) {
            // Allow for links in the help text, so no filtering anymore.
            $wrapperType = $isFieldset ? 'fieldsetDescription' : 'description';
            $output .= $this->getWrapper($wrapperType);
            $output .= $text;
            $output .= $this->getWrapperEnd($wrapperType);
        }

        return $output;
    }
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
    }
198573
function title( $contentObjectAttribute, $value = null )
    {
        $text = eZXMLTextType::rawXMLText( $contentObjectAttribute );

        $dom = new DOMDocument( '1.0', 'utf-8' );
        $success = $dom->loadXML( $text );

        // Get first text element of xml
        if ( !$success )
        {
            return $text;
        }

        $root = $dom->documentElement;
        $section = $root->firstChild;
        $textDom = false;
        if ( $section )
        {
            $textDom = $section->firstChild;
        }

        if ( $textDom && $textDom->hasChildNodes() )
        {
            $text = $textDom->firstChild->textContent;
        }
        elseif ( $textDom )
        {
            $text = $textDom->textContent;
        }

        return $text;
    }
500146
public function renderSlide($isFirst = false, $isMiddle = false, $isLast = false)
    {
        return $this->customise([
            'isFirst' => $isFirst,
            'isMiddle' => $isMiddle,
            'isLast' => $isLast
        ])->renderWith($this->getTemplate());
    }
948120
public function MoodleQuickForm_selectwithlink($elementName=null, $elementLabel=null, $options=null, $attributes=null, $linkdata=null) {
        debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
        self::__construct($elementName, $elementLabel, $options, $attributes, $linkdata);
    }