public function getAdapter() { if (null == $this->adapter) { throw new GridException('Grid adapter is not initialized'); } return $this->adapter; }