public function getStoreId() { if (!$this->hasData('store_id')) { $this->setData('store_id', (int) $this->getRequest()->getParam($this->getStoreVarName())); } return $this->getData('store_id'); }