getCollection(); $statusCollection ->joinLabelTable($storeId) ->addActiveFilter() ; $options = array(); foreach ($statusCollection->toOptionHash() as $value => $label) { $options[] = array('value' => $value, 'label' => $label); } return $options; } /** * @param int $storeId * * @return array */ static public function toOptionHash($storeId = 0) { $statusCollection = self::_getLabeledCollection($storeId); $statusCollection->addActiveFilter(); return $statusCollection->toOptionHash(); } static public function getNewAndOpenStatusToOptionHash() { return array(self::NEW_AND_OPEN_VALUE => Mage::helper('aw_hdu3')->__('New and Open')); } static public function toOptionHashExpanded($storeId = 0) { $priorityCollection = self::_getLabeledCollection($storeId); $priorityCollection->addNotDeletedFilter(); return $priorityCollection->toOptionHash(); } static protected function _getLabeledCollection($storeId = 0) { $priorityCollection = Mage::getModel('aw_hdu3/ticket_status')->getCollection(); $priorityCollection->joinLabelTable($storeId); return $priorityCollection; } }