_init('rewardpoints/stats '); $this->_targets = array( self::TARGET_PER_ORDER => Mage::helper('rewardpoints')->__('Related to Order ID'), self::TARGET_FREE => Mage::helper('rewardpoints')->__('Not related to Order ID'), ); } public function getTargetsArray() { return $this->_targets; } public function targetsToOptionArray() { return $this->_toOptionArray($this->_targets); } protected function _toOptionArray($array) { $res = array(); foreach ($array as $value => $label) { $res[] = array('value' => $value, 'label' => $label); } return $res; } }