protected function renderBody() { $src = $this->getImageUrl(); $text = $this->isEncodeText() ? pradoEncodeData($this->getText()) : $this->getText(); if (strlen($src)) { return "<img src=\"{$src}\" border=\"0\" title=\"{$text}\"/>"; } else { if (strlen($text)) { return $text; } else { return parent::renderBody(); } } }
/** * This overrides the parent implementation by rendering either <b>Text</b> or the body contents. * @return string the rendering result */ protected function renderBody() { $text = $this->isEncodeText() ? pradoEncodeData($this->getText()) : $this->getText(); return strlen($text) ? $text : parent::renderBody(); }
/** * Renders the body content of this table. * @return string the rendering result */ protected function renderBody() { return "\n" . parent::renderBody() . "\n"; }
/** * Renders the body content of this cell. * @return string the rendering result */ protected function renderBody() { $text = $this->getText(); if ($text !== '') { return $text; } else { return parent::renderBody(); } }