* 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_Feed_Status 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::getFeedProcessingStatuses(); foreach ($feedStatusList as $feedStatusCode => $feedStatusLabel) { $this->_options[] = array( 'value' => $feedStatusCode, 'label' => Mage::helper('checkoutbyamazon')->__($feedStatusLabel) ); } } return $this->_options; } }