getCollection(); if($store_id > 0){ $collection->addStoreFilter($store_id); } return $collection; } /** * Returns stores as array * * @param int|null $store_id * @return array */ public function getAsArray($store_id){ return $this->getStaticBlocks($store_id)->toArray(); } /** * Returns available stores as selection for dropdown * * @param int|null $store_id * @return array */ public function getOptionsArray($store_id){ $options = $this->getStaticBlocks($store_id)->toOptionArray(); array_unshift($options, array('value' => 0,'label' => $this->__("Choose ..."))); return $options; } }