Backend\Modules\Blog\Actions\Comments::addPostData PHP Метод

addPostData() публичный статический Метод

Add postdata into the comment
public static addPostData ( string $text, string $title, string $url, integer $id ) : string
$text string The comment.
$title string The title for the blogarticle.
$url string The URL for the blogarticle.
$id integer The id of the comment.
Результат string
    public static function addPostData($text, $title, $url, $id)
    {
        // reset URL
        $url = BackendModel::getURLForBlock('Blog', 'Detail') . '/' . $url . '#comment-' . $id;
        // build HTML
        return '<p><em>' . sprintf(BL::msg('CommentOnWithURL'), $url, $title) . '</em></p>' . "\n" . (string) $text;
    }