public function getSegments() { if (!self::$segments) { self::$segments = Mage::getModel('advancednewsletter/segment')->getCollection()->addStoreFilter($this->getStoreId())->addCategoryFilter($this->getCategoryId())->addFieldToFilter('frontend_visibility', array('eq' => array(1)))->addOrder('display_order', Varien_Data_Collection::SORT_ORDER_ASC); } return self::$segments; }
public function setBlockUniqueId($id) { self::$uniqueId = $id; }