Ejemplo n.º 1
0
 /**
  *
  * @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;
 }
Ejemplo n.º 2
0
 public function onBootstrap(EventInterface $e)
 {
     /**
      * @var $e MvcEvent
      */
     DecoratorFactory::setContainer($e->getApplication()->getServiceManager());
     // TODO: Implement onBootstrap() method.
 }
Ejemplo n.º 3
0
 /**
  * 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;
 }