/** * 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(); }
/** * 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); }
/** * @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(); }
/** * Register component. * * @return void */ public function prepare() { parent::prepare(); $jsConfig = $this->getConfiguration($this); $this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig); }