Prado\Web\UI\WebControls\TValidationSummary::renderContents PHP 메소드

renderContents() 공개 메소드

Overrides parent implementation by rendering TValidationSummary-specific presentation.
public renderContents ( $writer ) : string
리턴 string the rendering result
    public function renderContents($writer)
    {
        $this->renderJsSummary();
        if ($this->getShowSummary()) {
            //		    $this->setStyle('display:block');
            switch ($this->getDisplayMode()) {
                case TValidationSummaryDisplayMode::SimpleList:
                    $this->renderList($writer);
                    break;
                case TValidationSummaryDisplayMode::SingleParagraph:
                    $this->renderSingleParagraph($writer);
                    break;
                case TValidationSummaryDisplayMode::BulletList:
                    $this->renderBulletList($writer);
                    break;
                case TValidationSummaryDisplayMode::HeaderOnly:
                    $this->renderHeaderOnly($writer);
                    break;
            }
        }
    }