Esempio n. 1
0
 protected function _fetchData(KViewContext $context)
 {
     parent::_fetchData($context);
     $model = $this->getModel();
     $this->_setModelState($model);
     $context->data->items = $model->fetch();
     $context->data->total = $model->count();
 }
Esempio n. 2
0
    /**
     * Sets the parameters in the pageable behavior too
     *
     * {@inheritdoc}
     */
    public function set($property, $value)
    {
        parent::set($property, $value);

        if ($property == 'module' && isset($this->module->params)) {
            $this->setParameters($this->module->params);
        }
    }