Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Wishlist_Block_Abstract
  • Mage_Wishlist_Block_Customer_Sharing
  • Mage_Wishlist_Block_Customer_Sidebar
  • Mage_Wishlist_Block_Customer_Wishlist
  • Mage_Wishlist_Block_Customer_Wishlist_Button
  • Mage_Wishlist_Block_Customer_Wishlist_Item_Column
  • Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Cart
  • Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Comment
  • Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Image
  • Mage_Wishlist_Block_Customer_Wishlist_Item_Column_Remove
  • Mage_Wishlist_Block_Customer_Wishlist_Item_Options
  • Mage_Wishlist_Block_Customer_Wishlist_Items
  • Mage_Wishlist_Block_Item_Configure
  • Mage_Wishlist_Block_Links
  • Mage_Wishlist_Block_Render_Item_Price
  • Mage_Wishlist_Block_Share_Email_Items
  • Mage_Wishlist_Block_Share_Email_Rss
  • Mage_Wishlist_Block_Share_Wishlist
  • Mage_Wishlist_Controller_Abstract
  • Mage_Wishlist_Helper_Data
  • Mage_Wishlist_IndexController
  • Mage_Wishlist_Model_Config
  • Mage_Wishlist_Model_Config_Source_Summary
  • Mage_Wishlist_Model_Item
  • Mage_Wishlist_Model_Item_Option
  • Mage_Wishlist_Model_Mysql4_Item
  • Mage_Wishlist_Model_Mysql4_Item_Collection
  • Mage_Wishlist_Model_Mysql4_Item_Option
  • Mage_Wishlist_Model_Mysql4_Item_Option_Collection
  • Mage_Wishlist_Model_Mysql4_Product_Collection
  • Mage_Wishlist_Model_Mysql4_Wishlist
  • Mage_Wishlist_Model_Mysql4_Wishlist_Collection
  • Mage_Wishlist_Model_Observer
  • Mage_Wishlist_Model_Resource_Item
  • Mage_Wishlist_Model_Resource_Item_Collection
  • Mage_Wishlist_Model_Resource_Item_Option
  • Mage_Wishlist_Model_Resource_Item_Option_Collection
  • Mage_Wishlist_Model_Resource_Wishlist
  • Mage_Wishlist_Model_Resource_Wishlist_Collection
  • Mage_Wishlist_Model_Session
  • Mage_Wishlist_Model_Wishlist
  • Mage_Wishlist_SharedController
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Wishlist_Model_Resource_Item_Collection

Wishlist item collection

Varien_Data_Collection_Db
Extended by Mage_Core_Model_Resource_Db_Collection_Abstract
Extended by Mage_Wishlist_Model_Resource_Item_Collection

Direct known subclasses

Mage_Wishlist_Model_Mysql4_Item_Collection
Package: Mage\Wishlist
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Wishlist/Model/Resource/Item/Collection.php
Methods summary
public
# _construct( )

Initialize resource model for collection

Initialize resource model for collection

Overrides

Mage_Core_Model_Resource_Db_Collection_Abstract::_construct()
protected Mage_Wishlist_Model_Resource_Item_Collection
# _afterLoad( )

After load processing

After load processing

Returns

Mage_Wishlist_Model_Resource_Item_Collection

Overrides

Mage_Core_Model_Resource_Db_Collection_Abstract::_afterLoad()
protected Mage_Wishlist_Model_Resource_Item_Collection
# _assignOptions( )

Add options to items

Add options to items

Returns

Mage_Wishlist_Model_Resource_Item_Collection
protected Mage_Wishlist_Model_Resource_Item_Collection
# _assignProducts( )

Add products to items and item options

Add products to items and item options

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# addWishlistFilter( Mage_Wishlist_Model_Wishlist $wishlist )

Add filter by wishlist object

Add filter by wishlist object

Parameters

$wishlist
Mage_Wishlist_Model_Wishlist
$wishlist

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# addCustomerIdFilter( integer $customerId )

Add filtration by customer id

Add filtration by customer id

Parameters

$customerId
integer
$customerId

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# addStoreFilter( array $storeIds = array() )

Add filter by shared stores

Add filter by shared stores

Parameters

$storeIds
array
$storeIds

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# addStoreData( )

Add items store data to collection

Add items store data to collection

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# resetSortOrder( )

Reset sort order

Reset sort order

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# setVisibilityFilter( boolean $flag = true )

Set product Visibility Filter to product collection flag

Set product Visibility Filter to product collection flag

Parameters

$flag
boolean
$flag

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# setSalableFilter( boolean $flag = true )

Set Salable Filter. This filter apply Salable Product Types Filter to product collection.

Set Salable Filter. This filter apply Salable Product Types Filter to product collection.

Parameters

$flag
boolean
$flag

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# setInStockFilter( boolean $flag = true )

Set In Stock Filter. This filter remove items with no salable product.

Set In Stock Filter. This filter remove items with no salable product.

Parameters

$flag
boolean
$flag

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# addDaysFilter( array $constraints )

Adds filter on days in wishlist

Adds filter on days in wishlist

$constraints may contain 'from' and 'to' indexes with number of days to look for items

Parameters

$constraints
array
$constraints

Returns

Mage_Wishlist_Model_Resource_Item_Collection
protected Mage_Wishlist_Model_Resource_Item_Collection
# _joinProductNameTable( )

Joins product name attribute value to use it in WHERE and ORDER clauses

Joins product name attribute value to use it in WHERE and ORDER clauses

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# addProductNameFilter( string $productName )

Adds filter on product name

Adds filter on product name

Parameters

$productName
string
$productName

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public Mage_Wishlist_Model_Resource_Item_Collection
# setOrderByProductName( string $dir )

Sets ordering by product name

Sets ordering by product name

Parameters

$dir
string
$dir

Returns

Mage_Wishlist_Model_Resource_Item_Collection
public integer
# getItemsQty( )

Get sum of items collection qty

Get sum of items collection qty

Returns

integer
Methods inherited from Mage_Core_Model_Resource_Db_Collection_Abstract
__construct(), _beforeLoad(), _canUseCache(), _getCacheTags(), _getInitialFieldsToSelect(), _init(), _initInitialFieldsToSelect(), _initSelect(), _initSelectFields(), _loadCache(), _prepareSelect(), _saveCache(), addExpressionFieldToSelect(), addFieldToSelect(), formatDate(), getAllIds(), getData(), getMainTable(), getModelName(), getResource(), getResourceModelName(), getSelect(), getTable(), join(), removeAllFieldsFromSelect(), removeFieldFromSelect(), resetItemsDataChanged(), save(), setMainTable(), setModel(), setResetItemsDataChanged(), setResourceModel()
Constants inherited from Mage_Core_Model_Resource_Db_Collection_Abstract
CACHE_TAG
Properties summary
protected boolean $_productVisible false
#

Product Visibility Filter to product collection flag

Product Visibility Filter to product collection flag

protected boolean $_productSalable false
#

Product Salable Filter to product collection flag

Product Salable Filter to product collection flag

protected boolean $_productInStock false
#

If product out of stock, its item will be removed after load

If product out of stock, its item will be removed after load

protected array $_productIds array()
#

Product Ids array

Product Ids array

protected array $_storeIds array()
#

Store Ids array

Store Ids array

protected boolean $_addDaysInWishlist false
#

Add days in whishlist filter of product collection

Add days in whishlist filter of product collection

protected integer $_itemsQty
#

Sum of items collection qty

Sum of items collection qty

protected boolean $_isProductNameJoined false
#

Whether product name attribute value table is joined in select

Whether product name attribute value table is joined in select

Properties inherited from Mage_Core_Model_Resource_Db_Collection_Abstract
$_eventObject, $_eventPrefix, $_fieldsToSelect, $_fieldsToSelectChanged, $_initialFieldsToSelect, $_joinedTables, $_mainTable, $_model, $_resetItemsDataChanged, $_resource, $_resourceModel, $_useAnalyticFunction
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0