public function render($key = NULL, $rowData = NULL) { if (is_null($key) || is_null($rowData)) { return ''; } return parent::invoke(array($rowData), NULL, NULL); }
public function invoke(array $args = array(), $name, $key) { $arguments = array($this->parent->parent[$name . $key]); $arguments = array_merge($arguments, $args); return parent::invoke($arguments, $name, $key); }
protected function addOpenedSubItemRow(Render\Body &$body, $rowData, $name, $key, Item $item) { $item->check($rowData); if ($item->isDisabled()) { return; } $columns_count = count($this->column_arr); $columns_count--; $content = $this['subitem']->getItem($name)->render($key, $rowData); $column = new Column\SubItemButton(); $column->setGridComponent($this)->setName($name)->setKey($key)->setTwoRows()->setOpened(TRUE); $cell = $this->rendererFactory->createCell($columns_count, new Column\SubItem(array(Column\SubItem::TEXT => $content))); $row = $this->rendererFactory->createRow($rowData); $row->setAttribute('class', 'no-sort ' . count($this->getColumns())); $row->addCell($cell); $_row = $this->rendererFactory->createRow($rowData); $description = new Column\SubItem(array(Column\SubItem::TEXT => $this['subitem']->getItem($name)->getDescription())); $_cell = $this->rendererFactory->createCell($columns_count, $description); $_row->addCell($this->rendererFactory->createCell(1, $column)); $_row->addCell($_cell); $_row->setAttribute('class', 'no-sort'); $body->addRow($_row); $body->addRow($row); }