Пример #1
0
 /**
  * Register component and apply paging settings to Data Provider
  *
  * @return void
  */
 public function prepare()
 {
     $this->prepareOptions();
     $paging = $this->getContext()->getRequestParam('paging');
     $this->getContext()->getDataProvider()->setLimit($this->getOffset($paging), $this->getSize($paging));
     parent::prepare();
 }
Пример #2
0
 /**
  * Register component and apply paging settings to Data Provider
  *
  * @return void
  */
 public function prepare()
 {
     parent::prepare();
     $this->prepareConfiguration();
     $this->prepareOptions();
     $paging = $this->getContext()->getRequestParam('paging');
     $this->getContext()->getDataProvider()->setLimit($this->getOffset($paging), $this->getSize($paging));
     $jsConfig = $this->getConfiguration($this);
     $this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig);
 }
Пример #3
0
 /**
  * @inheritDoc
  */
 public function prepare()
 {
     $config = $this->getConfiguration();
     foreach ($this->getChildComponents() as $actionComponent) {
         $config['actions'][] = $actionComponent->getConfiguration();
     }
     $origConfig = $this->getConfiguration();
     if ($origConfig !== $config) {
         $config = array_replace_recursive($config, $origConfig);
     }
     $this->setData('config', $config);
     parent::prepare();
 }
Пример #4
0
 /**
  * Register component.
  *
  * @return void
  */
 public function prepare()
 {
     parent::prepare();
     $jsConfig = $this->getConfiguration($this);
     $this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig);
 }