$grouped_products = Mage::getModel('Catalog/Product')->getCollection()->addAttributeToFilter('visibility', array('eq' => 4));
allfunction
$grouped_products:
[0] => getCatalogPreparedSelect
[1] => getPriceExpression
[2] => getAdditionalPriceExpression
[3] => getCurrencyRate
[4] => getFlatHelper
[5] => isEnabledFlat
[6] => getNewEmptyItem
[7] => setEntity
[8] => setStore
[9] => _loadAttributes
[10] => addAttributeToSelect
[11] => addIdFilter
[12] => addWebsiteNamesToResult
[13] => addStoreFilter
[14] => addWebsiteFilter
[15] => getLimitationFilters
[16] => addCategoryFilter
[17] => joinMinimalPrice
[18] => getMaxAttributeValue
[19] => getAttributeValueCountByRange
[20] => getAttributeValueCount
[21] => getAllAttributeValues
[22] => getSelectCountSql
[23] => getAllIds
[24] => getProductCountSelect
[25] => unsProductCountSelect
[26] => addCountToCategories
[27] => getSetIds
[28] => getProductTypeIds
[29] => joinUrlRewrite
[30] => addUrlRewrite
[31] => addMinimalPrice
[32] => addFinalPrice
[33] => getAllIdsCache
[34] => setAllIdsCache
[35] => addPriceData
[36] => addAttributeToFilter
[37] => addTaxPercents
[38] => requireTaxPercent
[39] => addOptionsToResult
[40] => addFilterByRequiredOptions
[41] => setVisibility
[42] => addAttributeToSort
[43] => applyFrontendPriceLimitations
[44] => addCategoryIds
[45] => addTierPriceData
[46] => addPriceDataFieldFilter
[47] => clear
[48] => setOrder
[49] => getMaxPrice
[50] => getMinPrice
[51] => getPriceStandardDeviation
[52] => getPricesCount
[53] => setStoreId
[54] => getStoreId
[55] => getDefaultStoreId
[55] => getDefaultStoreId
[56] => __construct
[57] => getTable
[58] => getEntity
[59] => getResource
[60] => setObject
[61] => addItem
[62] => getAttribute
[63] => addFieldToFilter
[64] => addEntityTypeToSelect
[65] => addStaticField
[66] => addExpressionAttributeToSelect
[67] => groupByAttribute
[68] => joinAttribute
[69] => joinField
[70] => joinTable
[71] => removeAttributeToSelect
[72] => setPage
[73] => load
[74] => getAllIdsSql
[75] => save
[76] => delete
[77] => importFromArray
[78] => exportToArray
[79] => getRowIdFieldName
[80] => setRowIdFieldName
[81] => _loadEntities
[82] => toArray
[83] => getLoadedIds
[84] => _prepareSelect
[85] => addBindParam
[86] => initCache
[87] => getIdFieldName
[88] => setConnection
[89] => getSelect
[90] => getConnection
[91] => getSize
[92] => getSelectSql
[93] => addOrder
[94] => unshiftOrder
[95] => distinct
[96] => fetchItem
[97] => getData
[98] => resetData
[99] => loadData
[100] => printLogQuery
[101] => addFilterToMap
[102] => addFilter
[103] => getFilter
[104] => isLoaded
[105] => getCurPage
[106] => getLastPageNumber
[107] => getPageSize
[108] => getFirstItem
[109] => getLastItem
[110] => getItems
[111] => getColumnValues
[112] => getItemsByColumnValue
[113] => getItemByColumnValue
[114] => removeItemByKey
[115] => walk
[116] => each
[117] => setDataToAll
[118] => setCurPage
[119] => setPageSize
[120] => setItemObjectClass
[121] => toXml
[122] => toOptionArray
[123] => toOptionHash
[124] => getItemById
[125] => getIterator
[126] => count
[127] => setCacheKey
[128] => getCacheKey
[129] => setCacheTags
[130] => getCacheTags
[131] => getCacheLifetime
[132] => getFlag
[133] => setFlag
[134] => hasFlag
considered above instance.put it in foreach loop like following.
foreach($grouped_products as $grouped_product)
$grouped_product:
[0] => getStoreId
[1] => getResourceCollection
[2] => getUrlModel
[3] => validate
[4] => getName
[5] => getPrice
[6] => setPriceCalculation
[7] => getTypeId
[8] => getStatus
[9] => getTypeInstance
[10] => setTypeInstance
[11] => getLinkInstance
[12] => getIdBySku
[13] => getCategoryId
[14] => getCategory
[15] => setCategoryIds
[16] => getCategoryIds
[17] => getCategoryCollection
[18] => getWebsiteIds
[19] => getStoreIds
[20] => getAttributes
[21] => canAffectOptions
[22] => cleanCache
[23] => getPriceModel
[24] => getGroupPrice
[25] => getTierPrice
[26] => getTierPriceCount
[27] => getFormatedTierPrice
[28] => getFormatedPrice
[29] => setFinalPrice
[30] => getFinalPrice
[31] => getCalculatedFinalPrice
[32] => getMinimalPrice
[33] => getSpecialPrice
[34] => getSpecialFromDate
[35] => getSpecialToDate
[36] => getRelatedProducts
[37] => getRelatedProductIds
[38] => getRelatedProductCollection
[39] => getRelatedLinkCollection
[40] => getUpSellProducts
[41] => getUpSellProductIds
[42] => getUpSellProductCollection
[43] => getUpSellLinkCollection
[44] => getCrossSellProducts
[45] => getCrossSellProductIds
[46] => getCrossSellProductCollection
[47] => getCrossSellLinkCollection
[48] => getGroupedLinkCollection
[49] => getMediaAttributes
[50] => getMediaGalleryImages
[51] => addImageToMediaGallery
[52] => getMediaConfig
[53] => duplicate
[54] => isSuperGroup
[55] => isSuperConfig
[56] => isGrouped
[57] => isConfigurable
[58] => isSuper
[59] => getVisibleInCatalogStatuses
[60] => getVisibleStatuses
[61] => isVisibleInCatalog
[62] => getVisibleInSiteVisibilities
[63] => isVisibleInSiteVisibility
[64] => isDuplicable
[65] => setIsDuplicable
[66] => isSalable
[67] => isAvailable
[68] => getIsSalable
[69] => isVirtual
[70] => isRecurring
[71] => isSaleable
[72] => isInStock
[73] => getAttributeText
[74] => getCustomDesignDate
[75] => getProductUrl
[76] => getUrlInStore
[77] => formatUrlKey
[78] => getUrlPath
[79] => addAttributeUpdate
[80] => toArray
[81] => fromArray
[82] => loadParentProductIds
[83] => delete
[84] => getRequestPath
[85] => getGiftMessageAvailable
[86] => getRatingSummary
[87] => isComposite
[88] => canConfigure
[89] => getSku
[90] => getWeight
[91] => getOptionInstance
[92] => getProductOptionsCollection
[93] => addOption
[94] => getOptionById
[95] => getOptions
[96] => getIsVirtual
[97] => addCustomOption
[98] => setCustomOptions
[99] => getCustomOptions
[100] => getCustomOption
[101] => hasCustomOptions
[102] => canBeShowInCategory
[103] => getAvailableInCategories
[104] => getDefaultAttributeSetId
[105] => getImageUrl
[106] => getSmallImageUrl
[107] => getThumbnailUrl
[108] => getReservedAttributes
[109] => isReservedAttribute
[110] => setOrigData
[111] => reset
[112] => getCacheIdTags
[113] => isProductsHasSku
[114] => processBuyRequest
[115] => getPreconfiguredValues
[116] => prepareCustomOptions
[117] => getProductEntitiesInfo
[118] => isDisabled
[119] => lockAttribute
[120] => unlockAttribute
[121] => unlockAttributes
[122] => getLockedAttributes
[123] => hasLockedAttributes
[124] => isLockedAttribute
[125] => setData
[126] => unsetData
[127] => loadByAttribute
[128] => getStore
[129] => getWebsiteStoreIds
[130] => setAttributeDefaultValue
[131] => getAttributeDefaultValue
[132] => setExistsStoreValueFlag
[133] => getExistsStoreValueFlag
[134] => isDeleteable
[135] => setIsDeleteable
[136] => isReadonly
[137] => setIsReadonly
[138] => getIdFieldName
[139] => getId
[140] => setId
[141] => getResourceName
[142] => getCollection
[143] => load
[144] => afterLoad
[145] => save
[146] => afterCommitCallback
[147] => isObjectNew
[148] => getCacheTags
[149] => cleanModelCache
[150] => getResource
[151] => getEntityId
[152] => clearInstance
[153] => __construct
[154] => isDeleted
[155] => hasDataChanges
[156] => setIdFieldName
[157] => addData
[158] => unsetOldData
[159] => getData
[160] => setDataUsingMethod
[161] => getDataUsingMethod
[162] => getDataSetDefault
[163] => hasData
[164] => __toArray
[165] => toXml
[166] => toJson
[167] => toString
[168] => __call
[169] => __get
[170] => __set
[171] => isEmpty
[172] => serialize
[173] => getOrigData
[174] => dataHasChangedFor
[175] => setDataChanges
[176] => debug
[177] => offsetSet
[178] => offsetExists
[179] => offsetUnset
[180] => offsetGet
[181] => isDirty
[182] => flagDirty
considered above instance.put it in foreach loop like following.
$sigle_product_ids = $grouped_product->getTypeInstance(true);
$sigle_product_ids:
[0] => getRelationInfo
[1] => getChildrenIds
[2] => getParentIdsByChild
[3] => getAssociatedProducts
[4] => addStatusFilter
[5] => setSaleableStatus
[6] => getStatusFilters
[7] => getAssociatedProductIds
[8] => getAssociatedProductCollection
[9] => isSalable
[10] => save
[11] => getProductsToPurchaseByReqGroups
[12] => processBuyRequest
[13] => setProduct
[14] => setTypeId
[15] => getProduct
[16] => getSetAttributes
[17] => attributesCompare
[18] => getEditableAttributes
[19] => getAttributeById
[20] => isVirtual
[21] => processConfiguration
[22] => prepareForCartAdvanced
[23] => prepareForCart
[24] => processFileQueue
[25] => addFileQueue
[26] => getSpecifyOptionMessage
[27] => checkProductBuyState
[28] => getOrderOptions
[29] => beforeSave
[30] => isComposite
[31] => canConfigure
[32] => canUseQtyDecimals
[33] => getSku
[34] => getOptionSku
[35] => getWeight
[36] => hasOptions
[37] => updateQtyOption
[38] => hasRequiredOptions
[39] => getStoreFilter
[40] => setStoreFilter
[41] => getForceChildItemQtyChanges
[42] => prepareQuoteItemQty
[43] => assignProductToOption
[44] => setConfig
[45] => getSearchableData
[46] => checkProductConfiguration
[47] => isMapEnabledInOptions
$products = Mage::getModel('Catalog/Product')->getCollection()->addAttributeToFilter('sku',array('eq',$result_item2['sku']));
foreach($products as $item)
{
print_r(get_class_methods($item));
}
[0] => getStoreId
[1] => getResourceCollection
[2] => getUrlModel
[3] => validate
[4] => getName
[5] => getPrice
[6] => setPriceCalculation
[7] => getTypeId
[8] => getStatus
[9] => getTypeInstance
[10] => setTypeInstance
[11] => getLinkInstance
[12] => getIdBySku
[13] => getCategoryId
[14] => getCategory
[15] => setCategoryIds
[16] => getCategoryIds
[17] => getCategoryCollection
[18] => getWebsiteIds
[19] => getStoreIds
[20] => getAttributes
[21] => canAffectOptions
[22] => cleanCache
[23] => getPriceModel
[24] => getGroupPrice
[25] => getTierPrice
[26] => getTierPriceCount
[27] => getFormatedTierPrice
[28] => getFormatedPrice
[29] => setFinalPrice
[30] => getFinalPrice
[31] => getCalculatedFinalPrice
[32] => getMinimalPrice
[33] => getSpecialPrice
[34] => getSpecialFromDate
[35] => getSpecialToDate
[36] => getRelatedProducts
[37] => getRelatedProductIds
[38] => getRelatedProductCollection
[39] => getRelatedLinkCollection
[40] => getUpSellProducts
[41] => getUpSellProductIds
[42] => getUpSellProductCollection
[43] => getUpSellLinkCollection
[44] => getCrossSellProducts
[45] => getCrossSellProductIds
[46] => getCrossSellProductCollection
[47] => getCrossSellLinkCollection
[48] => getGroupedLinkCollection
[49] => getMediaAttributes
[50] => getMediaGalleryImages
[51] => addImageToMediaGallery
[52] => getMediaConfig
[53] => duplicate
[54] => isSuperGroup
[55] => isSuperConfig
[56] => isGrouped
[57] => isConfigurable
[58] => isSuper
[59] => getVisibleInCatalogStatuses
[60] => getVisibleStatuses
[61] => isVisibleInCatalog
[62] => getVisibleInSiteVisibilities
[63] => isVisibleInSiteVisibility
[64] => isDuplicable
[65] => setIsDuplicable
[66] => isSalable
[67] => isAvailable
[68] => getIsSalable
[69] => isVirtual
[70] => isRecurring
[71] => isSaleable
[72] => isInStock
[73] => getAttributeText
[74] => getCustomDesignDate
[75] => getProductUrl
[76] => getUrlInStore
[77] => formatUrlKey
[78] => getUrlPath
[79] => addAttributeUpdate
[80] => toArray
[81] => fromArray
[82] => loadParentProductIds
[83] => delete
[84] => getRequestPath
[85] => getGiftMessageAvailable
[86] => getRatingSummary
[87] => isComposite
[88] => canConfigure
[89] => getSku
[90] => getWeight
[91] => getOptionInstance
[92] => getProductOptionsCollection
[93] => addOption
[94] => getOptionById
[95] => getOptions
[96] => getIsVirtual
[97] => addCustomOption
[98] => setCustomOptions
[99] => getCustomOptions
[100] => getCustomOption
[101] => hasCustomOptions
[102] => canBeShowInCategory
[103] => getAvailableInCategories
[104] => getDefaultAttributeSetId
[105] => getImageUrl
[106] => getSmallImageUrl
[107] => getThumbnailUrl
[108] => getReservedAttributes
[109] => isReservedAttribute
[110] => setOrigData
[111] => reset
[112] => getCacheIdTags
[113] => isProductsHasSku
[114] => processBuyRequest
[115] => getPreconfiguredValues
[116] => prepareCustomOptions
[117] => getProductEntitiesInfo
[118] => isDisabled
[119] => lockAttribute
[120] => unlockAttribute
[121] => unlockAttributes
[122] => getLockedAttributes
[123] => hasLockedAttributes
[124] => isLockedAttribute
[125] => setData
[126] => unsetData
[127] => loadByAttribute
[128] => getStore
[129] => getWebsiteStoreIds
[130] => setAttributeDefaultValue
[131] => getAttributeDefaultValue
[132] => setExistsStoreValueFlag
[133] => getExistsStoreValueFlag
[134] => isDeleteable
[135] => setIsDeleteable
[136] => isReadonly
[137] => setIsReadonly
[138] => getIdFieldName
[139] => getId
[140] => setId
[141] => getResourceName
[142] => getCollection
[143] => load
[144] => afterLoad
[145] => save
[146] => afterCommitCallback
[147] => isObjectNew
[148] => getCacheTags
[149] => cleanModelCache
[150] => getResource
[151] => getEntityId
[152] => clearInstance
[153] => __construct
[154] => isDeleted
[155] => hasDataChanges
[156] => setIdFieldName
[157] => addData
[158] => unsetOldData
[159] => getData
[160] => setDataUsingMethod
[161] => getDataUsingMethod
[162] => getDataSetDefault
[163] => hasData
[164] => __toArray
[165] => toXml
[166] => toJson
[167] => toString
[168] => __call
[169] => __get
[170] => __set
[171] => isEmpty
[172] => serialize
[173] => getOrigData
[174] => dataHasChangedFor
[175] => setDataChanges
[176] => debug
[177] => offsetSet
[178] => offsetExists
[179] => offsetUnset
[180] => offsetGet
[181] => isDirty
[182] => flagDirty
Tuesday, June 04, 2013
[magento] mage class getModel
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment