TemplateConverterHelper::BuildArticleCommentFormStatement PHP Méthode

BuildArticleCommentFormStatement() public static méthode

public static BuildArticleCommentFormStatement ( array $p_optArray ) : string
$p_optArray array
Résultat string $newTag
    public static function BuildArticleCommentFormStatement($p_optArray)
    {
        $newTag = 'article_comment_form';
        $newTag .= isset($p_optArray[1]) ? ' template="' . $p_optArray[1] . '"' : '';
        $newTag .= isset($p_optArray[2]) ? ' submit_button="' . $p_optArray[2] . '"' : '';
        $newTag .= isset($p_optArray[3]) ? ' preview_button="' . $p_optArray[3] . '"' : '';
        return $newTag;
    }