Render

@param string $eol
@return string
495206
public function render($eol = "\r\n")
    {
        $input = $this->getRules();
        krsort($input);
        $output = [];
        foreach ($input as $userAgent => $rules) {
            $output[] = 'User-agent: ' . $userAgent;
            foreach ($rules as $directive => $value) {
                // Not multibyte
                $directive = ucfirst($directive);
                if (is_array($value)) {
                    // Shorter paths later
                    usort($value, function ($a, $b) {
                        return mb_strlen($a) < mb_strlen($b);
                    });
                    foreach ($value as $subValue) {
                        $output[] = $directive . ': ' . $subValue;
                    }
                } else {
                    $output[] = $directive . ': ' . $value;
                }
            }
            $output[] = '';
        }

        $host = $this->getHost();
        if ($host !== null) {
            $output[] = 'Host: ' . $host;
        }

        $sitemaps = $this->getSitemaps();
        foreach ($sitemaps as $sitemap) {
            $output[] = 'Sitemap: ' . $sitemap;
        }

        $output[] = '';
        return implode($eol, $output);
    }
598947
public function render()
    {
        return implode(PHP_EOL, array_filter([
            $this->title->render(),
            $this->description->render(),
            $this->keywords->render(),
            $this->misc->render(),
            $this->webmasters->render(),
            $this->analytics->render(),
        ]));
    }
982041
public function render()
    {
        $output[] = $this->open();

        if ($this->hasChildNodes()) {
            if ($this->inline) {
                $this->attributes->addAttributeClass('list-inline');
            }

            foreach ($this->childNodes as $childNode) {
                if ($this->inline) {
                    $childNode->attributes->addAttributeClass('list-inline-item');
                }
                $output[] = $childNode;
            }
        }

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

        return implode(PHP_EOL, $output);
    }
1295286
protected function error($line, $eol = PHP_EOL)
    {
        $this->m->shell->error($line, $eol);
    }
482653
public function render()
    {
        $this->output->writeln('');

        $lineLength = $this->getTerminalWidth();

        $lines = explode(PHP_EOL, wordwrap($this->message, $lineLength - (strlen($this->blockStyles[$this->style]['prefix']) + 3), PHP_EOL, true));
        array_unshift($lines, ' ');
        array_push($lines, ' ');

        foreach ($lines as $i => $line) {
            $prefix = str_repeat(' ', strlen($this->blockStyles[$this->style]['prefix']));
            if ($i === 1) {
                $prefix = $this->blockStyles[$this->style]['prefix'];
            }

            $line = sprintf(' %s %s', $prefix, $line);
            $this->output->writeln(sprintf('<%s>%s%s</>', $this->blockStyles[$this->style]['style'], $line, str_repeat(' ', $lineLength - Helper::strlenWithoutDecoration($this->output->getFormatter(), $line))));
        }

        $this->output->writeln('');
    }
276691
public function renderGroup($group)
    {
        if (!isset($this->groups[$group])) {
            return PHP_EOL;
        }

        foreach ($this->groups[$group] as $handle => $data) {
            $assets[] = $this->getGroup($group, $handle);
        }

        return implode(PHP_EOL, $assets);
    }
1253180
public function render()
    {
        $htmlContent = '';
        foreach (self::$iconList->toArray() as $icon) {
            $htmlContent .= '<link href="' . $icon[0] . '" rel="icon">' . PHP_EOL;
        }
        return $htmlContent;
    }
707242
public function render()
    {
        $output[] = $this->open();
        $output[] = $this->media;
        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
814015
public function getPartContent($partnum, $EOL = Zend_Mime::LINEEND)
    {
        return $this->_parts[$partnum]->getContent($EOL);
    }
878165
public static function render($e)
    {
        $lines = null;

        foreach (self::__nearByLines($e->getLine(), $e->getFile()) as $line => $string) {
            $lines .= sprintf(
                '<li%s><strong>%d</strong> <code>%s</code></li>',
                (($line+1) == $e->getLine() ? ' class="error"' : null),
                ++$line,
                str_replace("\t", '&nbsp;&nbsp;&nbsp;&nbsp;', htmlspecialchars($string))
            );
        }

        $trace = null;

        foreach ($e->getTrace() as $t) {
            $trace .= sprintf(
                '<li><code><em>[%s:%d]</em></code></li><li><code>&#160;&#160;&#160;&#160;%s%s%s();</code></li>',
                (isset($t['file']) ? $t['file'] : null),
                (isset($t['line']) ? $t['line'] : null),
                (isset($t['class']) ? $t['class'] : null),
                (isset($t['type']) ? $t['type'] : null),
                $t['function']
            );
        }

        $queries = null;

        if (is_object(Symphony::Database())) {
            $debug = Symphony::Database()->debug();

            if (!empty($debug)) {
                foreach ($debug as $query) {
                    $queries .= sprintf(
                        '<li><em>[%01.4f]</em><code> %s;</code> </li>',
                        (isset($query['execution_time']) ? $query['execution_time'] : null),
                        htmlspecialchars($query['query'])
                    );
                }
            }
        }

        return self::renderHtml(
            'fatalerror.generic',
            ($e instanceof ErrorException ? GenericErrorHandler::$errorTypeStrings[$e->getSeverity()] : 'Fatal Error'),
            $e->getMessage(),
            $e->getFile(),
            $e->getLine(),
            $lines,
            $trace,
            $queries
        );
    }
1080689
public function _render()
    {
        $ret = $this->prepend;
        if ($this->library) {
            $ret .= $this->library;
        } else {
            if ($this->str) {
                $ret .= "$('#".$this->owner->getJSID()."')";
            }
        }
        $ret .= $this->str;

        if ($this->enclose === true) {
            if ($this->preventDefault) {
                $ret = 'function(ev,ui){ev.preventDefault();ev.stopPropagation(); '.$ret.'}';
            } else {
                $ret = 'function(ev,ui){'.$ret.'}';
            }
        } elseif ($this->enclose) {
            $ret = ($this->library ?: "$('#".$this->owner->getJSID()."')").
                    ".bind('".$this->enclose."',function(ev,ui){ev.preventDefault();ev.stopPropagation(); ".$ret.'})';
        }

        if (@$this->debug) {
            echo "<font color='blue'>".htmlspecialchars($ret).';</font><br/>';
            $this->debug = false;
        }

        return $ret;
    }
1189307
public function render()
    {
        $output[] = $this->open();

        if ($this->subText instanceof Element) {
            $this->header->childNodes->push($this->subText);
        }

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

        return implode(PHP_EOL, $output);
    }
1304275
protected function _headersToString($headers, $eol = "\r\n")
    {
        $out = '';
        foreach ($headers as $key => $value) {
            if ($value === false || $value === null || $value === '') {
                continue;
            }
            $out .= $key . ': ' . $value . $eol;
        }
        if (!empty($out)) {
            $out = substr($out, 0, -1 * strlen($eol));
        }

        return $out;
    }
307285
public static function prefixLines($msg, $prefix, $eol = "\n") {
    if (static::endsWith($msg, $eol)) {
      return $prefix.str_replace($eol, $eol.$prefix, mb_substr($msg, 0,-1)).$eol;
    } else {
      return $prefix.str_replace($eol, $eol.$prefix, $msg);
    }
  }
1175531
public function render()
    {
        $path = $this->resolvePathVariable();
        $content =  "PATH=$path \n". implode(PHP_EOL, $this->getJobs());
        return $content;
    }
1056021
public static function render($mixed)
    {
        if (!is_array($mixed) && !is_object($mixed)) {
            return strpos(str_replace(' ', '', $mixed), 'function(') === 0 ? $mixed : json_encode($mixed);
        }

        $isNumArr = array_keys((array) $mixed) === range(0, count((array) $mixed) - 1);
        $isObject = is_object($mixed) || (!$isNumArr && !empty($mixed));

        $r = array();
        $i = 0;
        foreach ($mixed as $k => $m) {
            $r[$i] = ($isObject ? self::renderObjectKey($k).':' : '').self::render($m);
            ++$i;
        }

        return  ($isObject ? '{' : '[').implode(',', $r).($isObject ? '}' : ']');
    }
1256737
public static function render($e)
    {
        // Validate the type, resolve to a 404 if not valid
        if (!static::isValidThrowable($e)) {
            $e = new FrontendPageNotFoundException();
        }

        $trace = $queries = null;

        foreach ($e->getTrace() as $t) {
            $trace .= sprintf(
                '<li><code><em>[%s:%d]</em></code></li><li><code>&#160;&#160;&#160;&#160;%s%s%s();</code></li>',
                $t['file'],
                $t['line'],
                (isset($t['class']) ? $t['class'] : null),
                (isset($t['type']) ? $t['type'] : null),
                $t['function']
            );
        }

        if (is_object(Symphony::Database())) {
            $debug = Symphony::Database()->debug();

            if (!empty($debug)) {
                foreach ($debug as $query) {
                    $queries .= sprintf(
                        '<li><em>[%01.4f]</em><code> %s;</code> </li>',
                        (isset($query['execution_time']) ? $query['execution_time'] : null),
                        htmlspecialchars($query['query'])
                    );
                }
            }
        }

        $html = sprintf(
            file_get_contents(self::getTemplate('fatalerror.database')),
            $e->getDatabaseErrorMessage(),
            $e->getQuery(),
            $trace,
            $queries
        );

        $html = str_replace('{ASSETS_URL}', ASSETS_URL, $html);
        $html = str_replace('{SYMPHONY_URL}', SYMPHONY_URL, $html);
        $html = str_replace('{URL}', URL, $html);

        return $html;
    }