/** * Get the current GridState_Data or the GridState. * * @param bool $getData * * @return GridState_Data|GridState */ public function getState($getData = true) { if ($getData) { return $this->state->getData(); } return $this->state; }
/** * Returns a json encoded string representation of this state. Also stores the grid state in the session * @return {string} */ public function Value() { $value = parent::Value(); if ($this->grid->getForm()) { //Cache in the session $sessionKey = $this->getSessionKey(); Session::set('FormInfo.' . $this->grid->getForm()->FormName() . '.' . $this->grid->getName() . '.state.key', $sessionKey); Session::set('FormInfo.' . $this->grid->getForm()->FormName() . '.' . $this->grid->getName() . '.state.value', $value); } return $value; }
function ProcessMessages() { $this->ExtractOrderValues(); $this->SearchControl->ProcessMessages(); $filterApplied = $this->filterBuilder->ProcessMessages(); $this->quickFilter->ProcessMessages(); $this->gridState->ProcessMessages(); if ($filterApplied) { $link = $this->GetPage()->CreateLinkBuilder(); header('Location: ' . $link->GetLink()); exit; } }