public function getGlobalData()
    {

        // initialize the array for the global data
        $globalData = array();

        // initialize the global data
        $globalData[RegistryKeys::STORES] = $this->getStores();
        $globalData[RegistryKeys::LINK_TYPES] = $this->getLinkTypes();
        $globalData[RegistryKeys::TAX_CLASSES] = $this->getTaxClasses();
        $globalData[RegistryKeys::IMAGE_TYPES] = $this->getImageTypes();
        $globalData[RegistryKeys::DEFAULT_STORE] = $this->getDefaultStore();
        $globalData[RegistryKeys::STORE_WEBSITES] = $this->getStoreWebsites();
        $globalData[RegistryKeys::LINK_ATTRIBUTES] = $this->getLinkAttributes();
        $globalData[RegistryKeys::ROOT_CATEGORIES] = $this->getRootCategories();
        $globalData[RegistryKeys::CUSTOMER_GROUPS] = $this->getCustomerGroups();
        $globalData[RegistryKeys::CORE_CONFIG_DATA] = $this->getCoreConfigData();
        $globalData[RegistryKeys::ENTITY_TYPES] = $eavEntityTypes = $this->getEavEntityTypes();

        // prepare the attribute sets
        $eavAttributes = array();
        $eavAttributeSets = array();
        $eavAttributeGroups = array();
        foreach ($eavEntityTypes as $eavEntityTypeCode => $eavEntityType) {
            // load the attribute sets for the entity type
            $attributeSets = $this->getEavAttributeSetsByEntityTypeId($entityTypeId = $eavEntityType[MemberNames::ENTITY_TYPE_ID]);
            // append the attribute sets to the array
            $eavAttributeSets[$eavEntityTypeCode] = $attributeSets;

            // iterate over the attribute sets and initialize the attributes
            foreach ($attributeSets as $attributeSet) {
                // load the attribute set name
                $eavAttributeSetName = $attributeSet[MemberNames::ATTRIBUTE_SET_NAME];

                // load the attributes for the attribute set
                $eavAttributes[$eavEntityTypeCode][$eavAttributeSetName] = $this->getEavAttributesByEntityTypeIdAndAttributeSetName(
                    $entityTypeId,
                    $eavAttributeSetName
                );

                // load the attribute group for the attribute set
                $eavAttributeGroups[$eavEntityTypeCode][$eavAttributeSetName] = $this->getEavAttributeGroupsByAttributeSetId(
                    $attributeSet[MemberNames::ATTRIBUTE_SET_ID]
                );
            }
        }

        // prepare the user defined attributes
        $eavUserDefinedAttributes = array();
        foreach ($eavEntityTypes as $eavEntityTypeCode => $eavEntityType) {
            // load the user defined attributes for the entity type
            $eavUserDefinedAttributes[$eavEntityTypeCode] = $this->getEavAttributesByEntityTypeIdAndIsUserDefined(
                $eavEntityType[MemberNames::ENTITY_TYPE_ID]
            );
        }

        // initialize the arrays with the EAV attributes, EAV user defined attributes and attribute sets/groups
        $globalData[RegistryKeys::EAV_ATTRIBUTES] = $eavAttributes;
        $globalData[RegistryKeys::ATTRIBUTE_SETS] = $eavAttributeSets;
        $globalData[RegistryKeys::ATTRIBUTE_GROUPS] = $eavAttributeGroups;
        $globalData[RegistryKeys::EAV_USER_DEFINED_ATTRIBUTES] = $eavUserDefinedAttributes;

        // initialize categories per store view
        $globalData[RegistryKeys::CATEGORIES] = array();
        foreach ($globalData[RegistryKeys::STORES] as $storeView) {
            $storeViewCode = $storeView[MemberNames::CODE];
            $storeViewId = $storeView[MemberNames::STORE_ID];
            $globalData[RegistryKeys::CATEGORIES][$storeViewCode] = $this->categoryAssembler->getCategoriesWithResolvedPathByStoreView($storeViewId);
        }

        // return the array
        return $globalData;
    }
public function getGlobalData()
    {

        // initialize the array for the global data
        $globalData = array();

        // initialize the global data
        $globalData[RegistryKeys::STORES] = $this->getStores();
        $globalData[RegistryKeys::LINK_TYPES] = $this->getLinkTypes();
        $globalData[RegistryKeys::TAX_CLASSES] = $this->getTaxClasses();
        $globalData[RegistryKeys::IMAGE_TYPES] = $this->getImageTypes();
        $globalData[RegistryKeys::DEFAULT_STORE] = $this->getDefaultStore();
        $globalData[RegistryKeys::STORE_WEBSITES] = $this->getStoreWebsites();
        $globalData[RegistryKeys::LINK_ATTRIBUTES] = $this->getLinkAttributes();
        $globalData[RegistryKeys::ROOT_CATEGORIES] = $this->getRootCategories();
        $globalData[RegistryKeys::CUSTOMER_GROUPS] = $this->getCustomerGroups();
        $globalData[RegistryKeys::CORE_CONFIG_DATA] = $this->getCoreConfigData();
        $globalData[RegistryKeys::ENTITY_TYPES] = $eavEntityTypes = $this->getEavEntityTypes();

        // prepare the attribute sets
        $eavAttributes = array();
        $eavAttributeSets = array();
        $eavAttributeGroups = array();
        foreach ($eavEntityTypes as $eavEntityTypeCode => $eavEntityType) {
            // load the attribute sets for the entity type
            $attributeSets = $this->getEavAttributeSetsByEntityTypeId($entityTypeId = $eavEntityType[MemberNames::ENTITY_TYPE_ID]);
            // append the attribute sets to the array
            $eavAttributeSets[$eavEntityTypeCode] = $attributeSets;

            // iterate over the attribute sets and initialize the attributes
            foreach ($attributeSets as $attributeSet) {
                // load the attribute set name
                $eavAttributeSetName = $attributeSet[MemberNames::ATTRIBUTE_SET_NAME];

                // load the attributes for the attribute set
                $eavAttributes[$eavEntityTypeCode][$eavAttributeSetName] = $this->getEavAttributesByEntityTypeIdAndAttributeSetName(
                    $entityTypeId,
                    $eavAttributeSetName
                );

                // load the attribute group for the attribute set
                $eavAttributeGroups[$eavEntityTypeCode][$eavAttributeSetName] = $this->getEavAttributeGroupsByAttributeSetId(
                    $attributeSet[MemberNames::ATTRIBUTE_SET_ID]
                );
            }
        }

        // prepare the user defined attributes
        $eavUserDefinedAttributes = array();
        foreach ($eavEntityTypes as $eavEntityTypeCode => $eavEntityType) {
            // load the user defined attributes for the entity type
            $eavUserDefinedAttributes[$eavEntityTypeCode] = $this->getEavAttributesByEntityTypeIdAndIsUserDefined(
                $eavEntityType[MemberNames::ENTITY_TYPE_ID]
            );
        }

        // initialize the arrays with the EAV attributes, EAV user defined attributes and attribute sets/groups
        $globalData[RegistryKeys::EAV_ATTRIBUTES] = $eavAttributes;
        $globalData[RegistryKeys::ATTRIBUTE_SETS] = $eavAttributeSets;
        $globalData[RegistryKeys::ATTRIBUTE_GROUPS] = $eavAttributeGroups;
        $globalData[RegistryKeys::EAV_USER_DEFINED_ATTRIBUTES] = $eavUserDefinedAttributes;

        // initialize categories per store view
        $globalData[RegistryKeys::CATEGORIES] = array();
        foreach ($globalData[RegistryKeys::STORES] as $storeView) {
            $storeViewCode = $storeView[MemberNames::CODE];
            $storeViewId = $storeView[MemberNames::STORE_ID];
            $globalData[RegistryKeys::CATEGORIES][$storeViewCode] = $this->categoryAssembler->getCategoriesWithResolvedPathByStoreView($storeViewId);
        }

        // return the array
        return $globalData;
    }
public function getGlobalData ( ) { // initialize the array for the global data $ globalData = array ( ) ; // initialize the global data $ globalData [ RegistryKeys :: STORES ] = $ this -> getStores ( ) ; $ globalData [ RegistryKeys :: LINK_TYPES ] = $ this -> getLinkTypes ( ) ; $ globalData [ RegistryKeys :: TAX_CLASSES ] = $ this -> getTaxClasses ( ) ; $ globalData [ RegistryKeys :: IMAGE_TYPES ] = $ this -> getImageTypes ( ) ; $ globalData [ RegistryKeys :: DEFAULT_STORE ] = $ this -> getDefaultStore ( ) ; $ globalData [ RegistryKeys :: STORE_WEBSITES ] = $ this -> getStoreWebsites ( ) ; $ globalData [ RegistryKeys :: LINK_ATTRIBUTES ] = $ this -> getLinkAttributes ( ) ; $ globalData [ RegistryKeys :: ROOT_CATEGORIES ] = $ this -> getRootCategories ( ) ; $ globalData [ RegistryKeys :: CUSTOMER_GROUPS ] = $ this -> getCustomerGroups ( ) ; $ globalData [ RegistryKeys :: CORE_CONFIG_DATA ] = $ this -> getCoreConfigData ( ) ; $ globalData [ RegistryKeys :: ENTITY_TYPES ] = $ eavEntityTypes = $ this -> getEavEntityTypes ( ) ; // prepare the attribute sets $ eavAttributes = array ( ) ; $ eavAttributeSets = array ( ) ; $ eavAttributeGroups = array ( ) ; foreach ( $ eavEntityTypes as $ eavEntityTypeCode => $ eavEntityType ) { // load the attribute sets for the entity type $ attributeSets = $ this -> getEavAttributeSetsByEntityTypeId ( $ entityTypeId = $ eavEntityType [ MemberNames :: ENTITY_TYPE_ID ] ) ; // append the attribute sets to the array $ eavAttributeSets [ $ eavEntityTypeCode ] = $ attributeSets ; // iterate over the attribute sets and initialize the attributes foreach ( $ attributeSets as $ attributeSet ) { // load the attribute set name $ eavAttributeSetName = $ attributeSet [ MemberNames :: ATTRIBUTE_SET_NAME ] ; // load the attributes for the attribute set $ eavAttributes [ $ eavEntityTypeCode ] [ $ eavAttributeSetName ] = $ this -> getEavAttributesByEntityTypeIdAndAttributeSetName ( $ entityTypeId , $ eavAttributeSetName ) ; // load the attribute group for the attribute set $ eavAttributeGroups [ $ eavEntityTypeCode ] [ $ eavAttributeSetName ] = $ this -> getEavAttributeGroupsByAttributeSetId ( $ attributeSet [ MemberNames :: ATTRIBUTE_SET_ID ] ) ; } } // prepare the user defined attributes $ eavUserDefinedAttributes = array ( ) ; foreach ( $ eavEntityTypes as $ eavEntityTypeCode => $ eavEntityType ) { // load the user defined attributes for the entity type $ eavUserDefinedAttributes [ $ eavEntityTypeCode ] = $ this -> getEavAttributesByEntityTypeIdAndIsUserDefined ( $ eavEntityType [ MemberNames :: ENTITY_TYPE_ID ] ) ; } // initialize the arrays with the EAV attributes, EAV user defined attributes and attribute sets/groups $ globalData [ RegistryKeys :: EAV_ATTRIBUTES ] = $ eavAttributes ; $ globalData [ RegistryKeys :: ATTRIBUTE_SETS ] = $ eavAttributeSets ; $ globalData [ RegistryKeys :: ATTRIBUTE_GROUPS ] = $ eavAttributeGroups ; $ globalData [ RegistryKeys :: EAV_USER_DEFINED_ATTRIBUTES ] = $ eavUserDefinedAttributes ; // initialize categories per store view $ globalData [ RegistryKeys :: CATEGORIES ] = array ( ) ; foreach ( $ globalData [ RegistryKeys :: STORES ] as $ storeView ) { $ storeViewCode = $ storeView [ MemberNames :: CODE ] ; $ storeViewId = $ storeView [ MemberNames :: STORE_ID ] ; $ globalData [ RegistryKeys :: CATEGORIES ] [ $ storeViewCode ] = $ this -> categoryAssembler -> getCategoriesWithResolvedPathByStoreView ( $ storeViewId ) ; } // return the array return $ globalData ; }
Returns the array with the global data necessary for the
import process.

@return array The array with the global data
Returns the array with the global data necessary for the import process .