* All rights reserved * * Reuse or modification of this source code is not allowed * without written permission from creativestyle GmbH * * @category Creativestyle * @package Creativestyle_CheckoutByAmazon * @copyright Copyright (c) 2012 creativestyle GmbH (http://www.creativestyle.de) * @author Marek Zabrowarny / creativestyle GmbH */ class Creativestyle_CheckoutByAmazon_Model_Lookup_FeedStatus extends Creativestyle_Core_Model_Lookup_Abstract { public function toOptionArray() { if (null === $this->_options) { $this->_options = array(); $feedStatusList = Creativestyle_CheckoutByAmazon_Model_Api_Model_Marketplace_Feeds_Abstract::getFeedStatuses(); foreach ($feedStatusList as $feedStatusCode => $feedStatusLabel) { $this->_options[] = array( 'value' => $feedStatusCode, 'label' => Mage::helper('checkoutbyamazon')->__($feedStatusLabel) ); } } return $this->_options; } }