Pagination::render

@return string
507915
public function render()
    {
        // returning empty string if the num pages is zero
        if ($this->pages == 0 || $this->pages == 1) {
            return '';
        }

        $output[] = $this->open() . PHP_EOL;

        $current = (int)input()->get('page');
        $current = $current == 0 ? 1 : $current;

        $previous = new Element('span');
        $previous->entity->setEntityName('previous');
        $previous->attributes->addAttribute('aria-hidden', true);
        $previous->textContent->push('&laquo;');

        if ($current == 1) {
            $this->createList(new Link($previous, '#'));
            $this->childNodes->current()->disabled();
        } else {
            $this->createList(new Link($previous, current_url('', ['page' => $current - 1])));
        }

        foreach (range(1, $this->pages) as $page) {
            $this->createList(new Link($page, current_url('', ['page' => $page])));

            if ($current == $page) {

                $currentNode = $this->childNodes->current();
                $currentNode->active();

                $srOnly = new Element('span');
                $srOnly->entity->setEntityName('current');
                $srOnly->attributes->addAttributeClass('sr-only');
                $srOnly->textContent->push('(current)');

                $currentNode->childNodes->first()->childNodes->push($srOnly);
            }
        }

        $next = new Element('span');
        $next->entity->setEntityName('next');
        $next->attributes->addAttribute('aria-hidden', true);
        $next->textContent->push('&raquo;');

        if ($current == $this->pages) {
            $this->createList(new Link($next, '#'));
            $this->childNodes->current()->disabled();
        } else {
            $this->createList(new Link($next, current_url('', ['page' => $current + 1])));
        }

        if ($this->hasChildNodes()) {
            $output[] = implode(PHP_EOL, $this->childNodes->getArrayCopy());
        }

        $output[] = PHP_EOL . $this->close();

        return implode('', $output);
    }
264978
private function render()
    {
        $str = $this->args['container_start'];

        if ($this->args['show_parent'] && $this->parent_page_id !== false) {
            $str .= $this->get_parent_link_html();
        }

        foreach ($this->pages as $page) {
            $str .= $this->get_link_html($page);
        }

        $str .= $this->args['container_end'];
        echo $str;
    }
1136113
public function render()
    {
        // Count the max command length as column width.
        foreach ($this->items as $item) {
            /** @var $item AbstractCommand */
            $length = strlen($item->getName());

            if ($length > $this->maxLength) {
                $this->maxLength = $length;
            }
        }

        return parent::render();
    }
1228346
public function render()
    {
        $viewContent = $this->buildBladeViewContent();

        if ($this->isExpired()) {
            $this->filesystem->put($this->cached, $this->bladeCompiler->compileString($viewContent));
        }

        $data = $this->getViewData();

        return $this->engine->get($this->cached, $data);
    }
786265
public function render($count = 0)
    {
        $pagination = "";
        $items = $this->navigation($count);
        if ($items) foreach ($items as $page) {
            $pagination .= $this->item($page['page'], $page['url'], $page['label'], $page['class'], $page['current'], false);
        }
        
        $listPropertiesHtml = "";
        foreach ($this->options['list_properties'] as $k => $v) {
            $listPropertiesHtml .= " $k=\"$v\"";
        }
        $html = "<{$this->options['list_tag']}$listPropertiesHtml>{$pagination}</{$this->options['list_tag']}>";
        
        if ($this->options['container_tag']) {
            $containerPropertiesHtml = "";
            foreach ($this->options['container_properties'] as $k => $v) {
                $containerPropertiesHtml .= " $k=\"$v\"";
            }
            $html = "<div$containerPropertiesHtml>
                    $html
                    </div>";
        }
        
        return $html;
    }
425101
public function toHtml()
    {
        if($this->getNumPages() <= 1)
        {
            return '';
        }

        $this->renderer->setPaginator($this);
        return $this->renderer->render();
    }
987702
public function render()
    {
        if ( ! $this->hasPages()) {
            return null;
        }

        return sprintf(
            $this->wrapper,
            $this->getPreviousButton(),
            $this->pageLabel,
            $this->getSelect(),
            $this->getPageOfLabel(),
            $this->getNextButton()
        );
    }
775643
public function render(): string
    {
        return $this->renderTable() . $this->renderPk() . $this->renderIndexes() . $this->renderForeignKeys() . "\n";
    }
757390
public function render() {
		
		$buffer = ''; 
		
		if ( !empty( $this->header ) ) {
			
			$buffer .= '<tr'.HTML::attr( $this->header[1] ).'>';
			foreach( $this->header[0] as $head ) {
				$head->name = 'th';
				$buffer .= $head->render();
			}
			$buffer .= '</tr>';
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $this->header[0] as $key => $value ) {
					$buffer .= HTML::tag( 'td', $row[0][$key]->value, $row[0][$key]->attr );
				}
				$buffer .= '</tr>';
			}
		}
		else {
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $row[0] as $value ) {
					$buffer .= $value->render();
				}
				$buffer .= '</tr>';
			}
		}
		
		$this->element->value = $buffer;
		
		return $this->element->render();
	}
1229645
public function pages_render()
	{
		// no links if we only have one page
		if ($this->config['total_pages'] == 1)
		{
			return '';
		}

		$html = '';

		// calculate start- and end page numbers
		$start = $this->config['calculated_page'] - floor($this->config['num_links'] * $this->config['link_offset']);
		$end = $this->config['calculated_page'] + floor($this->config['num_links'] * ( 1 - $this->config['link_offset']));

		// adjust for the first few pages
		if ($start < 1)
		{
			$end -= $start - 1;
			$start = 1;
		}

		// make sure we don't overshoot the current page due to rounding issues
		if ($end < $this->config['calculated_page'])
		{
			$start++;
			$end++;
		}

		// make sure we don't overshoot the total
		if ($end > $this->config['total_pages'])
		{
			$start = max(1, $start - $end + $this->config['total_pages']);
			$end = $this->config['total_pages'];
		}

		for($i = intval($start); $i <= intval($end); $i++)
		{
			if ($this->config['calculated_page'] == $i)
			{
				$html .= str_replace(
				    '{link}',
				    str_replace(array('{uri}', '{page}'), array('#', $i), $this->template['active-link']),
				    $this->template['active']
				);
				$this->raw_results[] = array('uri' => '#', 'title' => $i, 'type' => 'active');
			}
			else
			{
				$html .= str_replace(
				    '{link}',
				    str_replace(array('{uri}', '{page}'), array($this->_make_link($i), $i), $this->template['regular-link']),
				    $this->template['regular']
				);
				$this->raw_results[] = array('uri' => $this->_make_link($i), 'title' => $i, 'type' => 'regular');
			}
		}

		return $html;
	}
841702
public function render($pagination, $template = null, array $queryParams = array(), array $viewParams = array())
    {
        return $this->environment->render(
            $template ?: $pagination->getTemplate(),
            $this->processor->render($pagination, $queryParams, $viewParams)
        );
    }
210643
public function render()
    {
        return $this->renderName()
        . $this->renderSource()
        . $this->renderMedium()
        . $this->renderKeyword()
        . $this->renderContent()
        . $this->renderId();
    }
885356
public function render()
    {
        if ($this->hasParagraphs()) {
            foreach ($this->paragraphs as $paragraph) {
                $this->childNodes->push($paragraph);
            }
        }

        return parent::render();
    }
911977
public function render()
    {
        //~ Transform $this->vars into multiples variables.
        extract($this->vars);

        //~ Include Template as regular php file
        ob_start();
        include $this->fileCompiled;
        $content = ob_get_contents();

        ob_end_clean();

        return $content;
    }
406275
public function render()
    {
        $paginationData = $this->paginator->getPages($this->scrollingStyle);
        $unorderedList  = $this->getElement()->spawnChild('ul');
        $previous       = $unorderedList->spawnChild('li');
        $previousAnchor = $previous->spawnChild('a')->setContent('&laquo;');

        $unorderedList->setAttributes($this->getListAttributes());
        $previous->setAttributes($this->getListItemAttributes());
        $previous->addAttributes($this->getPreviousAttributes());
        $previousAnchor->setAttributes($this->getAnchorAttributes());

        if (empty($paginationData->previous)) {
            $previous->addClass('disabled');
        } else {
            $previousAnchor->addAttribute('href', $this->getUrl(
                $this->getRoute(),
                array_merge(
                    array('page' => $paginationData->previous),
                    $this->getRouteParams()
                )
            ));
        }

        foreach ($paginationData->pagesInRange as $page) {
            $pageNumberElement = $unorderedList->spawnChild('li');
            $pageHref          = $this->getUrl(
                $this->getRoute(),
                array_merge(
                    array('page' => $page),
                    $this->getRouteParams()
                )
            );

            $pageNumberElement->setAttributes($this->getListItemAttributes());

            if ($page === $paginationData->current) {
                $pageNumberElement->addClass('active');
            }

            $anchorElement = $pageNumberElement->spawnChild('a')->addAttribute('href', $pageHref)->setContent($page);

            $anchorElement->addAttribute('data-page', $page);
        }

        $next       = $unorderedList->spawnChild('li');
        $nextAnchor = $next->spawnChild('a')->setContent('&raquo;');

        $next->setAttributes($this->getNextAttributes());

        if (empty($paginationData->next)) {
            $next->addClass('disabled');
        } else {
            $nextAnchor->addAttribute('href', $this->getUrl(
                $this->getRoute(),
                array_merge(
                    array('page' => $paginationData->next),
                    $this->getRouteParams()
                )
            ));
        }

        return $this->getElement()->render();
    }
361874
public function render()
    {
        $associationID = $this->arguments[self::ARGUMENT_ASSOCIATIONID];

        $associationFilter = $this->getDefaultAssociationFilter();

        if (empty($associationID)) {
            $association = $this->associationRepository->getFirstRootAssociation($associationFilter);
        } else {
            $association = $this->associationRepository->findByID($associationID, $associationFilter);
        }

        $this->templateVariableContainer->add($this->arguments[self::ARGUMENT_AS], $association);
        $output = $this->renderChildren();
        $this->templateVariableContainer->remove($this->arguments[self::ARGUMENT_AS]);

        return $output;
    }
1113099
public function render()
    {
        $counter = 0;

        foreach ($this->getRoutes() as $name => $route) {
            if ('_' !== substr($name, 0, 1)) {
                $this->routeRenderer->render($route, $name);
                $counter += 1;
            }
        }

        return $counter;
    }