/** * * @param string $name type * @param array $options type * @return Decorator\AbstractDecorator */ public function addDecorator($name, $options = array()) { $decorator = DecoratorFactory::factoryCell($name, $options); $decorator->setCell($this); $this->attachDecorator($decorator); return $decorator; }
public function onBootstrap(EventInterface $e) { /** * @var $e MvcEvent */ DecoratorFactory::setContainer($e->getApplication()->getServiceManager()); // TODO: Implement onBootstrap() method. }
/** * Set options like title, width, order, sortable * * @param string $name * @param array $options * @return Decorator\Header\AbstractHeaderDecorator */ public function addDecorator($name, $options = array()) { $decorator = DecoratorFactory::factoryHeader($name, $options); $this->attachDecorator($decorator); $decorator->setHeader($this); $decorator->setTable($this->getTable()); return $decorator; }