PMA\libraries\plugins\export\ExportMediawiki::_exportComment PHP Метод

_exportComment() приватный Метод

Outputs comments containing info about the exported tables
private _exportComment ( string $text = '' ) : string
$text string Text of comment
Результат string The formatted comment
    private function _exportComment($text = '')
    {
        // see https://www.mediawiki.org/wiki/Help:Formatting
        $comment = $this->_exportCRLF();
        $comment .= '<!--' . $this->_exportCRLF();
        $comment .= htmlspecialchars($text) . $this->_exportCRLF();
        $comment .= '-->' . str_repeat($this->_exportCRLF(), 2);
        return $comment;
    }