/** * Vloží prvek do sloupce formuláře. * * @param mixed $input Vstupní prvek * @param string $caption Popisek * @param string $placeholder předvysvětlující text * @param string $helptext Dodatečná nápověda */ public function addInput($input, $caption = null, $placeholder = null, $helptext = null) { if ($this->row->getItemsCount() > $this->itemsPerRow) { $this->row = $this->addItem(new EaseTWBRow()); } return $this->row->addItem(new EaseTWBCol($this->colsize, new EaseTWBFormGroup($caption, $input, $placeholder, $helptext))); }
/** * Zobrazí přehled záznamu. * * @param ABBase $recordObject */ public function __construct($recordObject) { parent::__construct(); $row = new EaseTWBRow(); $this->addItem(new EaseHtmlH3Tag($recordObject->getName())); $recordObject->setData($recordObject->htmlizeRow($recordObject->getData())); foreach ($recordObject->keywordsInfo as $keyword => $kinfo) { if ($keyword == $recordObject->nameColumn) { continue; } if (isset($kinfo['title'])) { $def = new EaseHtmlDlTag(); $def->addDef($kinfo['title'], $recordObject->getDataValue($keyword)); $row->addItem(new EaseTWBCol(4, $def)); } } $this->addItem($row); }