public function loadState() { parent::loadState(); if ($this->getEnableViewState(true)) { $this->getControls()->clear(); $this->buildPager(); } }