public function addComponent($component)
 {
     if (!$component instanceof TableCell) {
         $component = new TableCell($component);
     }
     parent::addComponent($component);
 }
 public function getOptions()
 {
     $source = $this->getUrl();
     $alt = $this->getAlternative();
     $title = $this->getTitle();
     $sourcePart = ' src="' . $source->toString() . '"';
     $altPart = ' alt="' . htmlspecialchars($alt) . '"';
     $titlePart = !empty($title) ? ' title="' . htmlspecialchars($title) . '"' : '';
     return parent::getOptions() . $sourcePart . $titlePart . $altPart;
 }
 public function getOptions()
 {
     $url = $this->getUrl()->toString($this->forceFull);
     $title = $this->getTitle();
     $onClick = $this->getOnClick();
     $newWindow = $this->newWindow;
     $urlPart = $url === null ? '' : ' href="' . $url . '"';
     $titlePart = $title === null ? '' : ' title="' . $title . '"';
     $onClickPart = $onClick === null ? '' : ' onclick="' . $onClick . '"';
     $targetPart = $newWindow === true ? ' target="_blank"' : '';
     return parent::getOptions() . $urlPart . $titlePart . $targetPart . $onClickPart;
 }
 public function addComponent($content)
 {
     parent::addComponent(new ListElement($content));
 }
 public function getOptions()
 {
     $mail = $this->getMail();
     $mailPart = !empty($mail) ? ' href="mailto:' . $mail . '"' : '';
     return parent::getOptions() . $mailPart;
 }
 public function getOptions()
 {
     $name = $this->getName();
     $namePart = $name === null ? '' : ' name="' . $name . '"';
     return parent::getOptions() . $namePart;
 }