/**
  * Overrides parent implementation by rendering TValidationSummary-specific presentation.
  * @return string the rendering result
  */
 public function render()
 {
     $group = $this->getGroup();
     $active = TValidatorGroup::isGroupValidation() ? false : true;
     if (!empty($group)) {
         $active = $this->getParent()->findObject($group)->isActive();
     }
     $this->renderJsSummary($this->getJsOptions());
     $content = "";
     if ($this->isEnabled() && $active && !$this->Page->isValid() && $this->isShowSummary()) {
         $this->setStyle('display:block');
         $messages = $this->getMessages();
         $headerText = $this->getHeaderText();
         switch ($this->getDisplayMode()) {
             case 'List':
                 $content = $this->renderList($messages, $headerText);
                 break;
             case 'SingleParagraph':
                 $content = $this->renderSingleParagraph($messages, $headerText);
                 break;
             case 'BulletList':
             default:
                 $content = $this->renderBulletList($messages, $headerText);
         }
     }
     return "<div {$this->renderAttributes()}>{$content}</div>";
 }