<?php

/*
 * @author     M2E Pro Developers Team
 * @copyright  M2E LTD
 * @license    Commercial use is forbidden
 */

class Ess_M2ePro_Block_Adminhtml_Walmart_Account_Edit_Tabs_ListingOther extends Mage_Adminhtml_Block_Widget
{
    //########################################

    public function __construct()
    {
        parent::__construct();

        // Initialization block
        // ---------------------------------------
        $this->setId('walmartAccountEditTabsListingOther');
        // ---------------------------------------

        $this->setTemplate('M2ePro/walmart/account/tabs/listing_other.phtml');
    }

    protected function _beforeToHtml()
    {
        /** @var Ess_M2ePro_Helper_Magento_Attribute $magentoAttributeHelper */
        $magentoAttributeHelper = Mage::helper('M2ePro/Magento_Attribute');

        $allAttributes = $magentoAttributeHelper->getAll();

        $this->attributes = $magentoAttributeHelper->filterByInputTypes(
            $allAttributes, array(
                'text', 'textarea', 'select'
            )
        );

        return parent::_beforeToHtml();
    }

    //########################################
}