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_Tag_Block_All
  • Mage_Tag_Block_Customer_Recent
  • Mage_Tag_Block_Customer_Tags
  • Mage_Tag_Block_Customer_View
  • Mage_Tag_Block_Popular
  • Mage_Tag_Block_Product_List
  • Mage_Tag_Block_Product_Result
  • Mage_Tag_CustomerController
  • Mage_Tag_Helper_Data
  • Mage_Tag_IndexController
  • Mage_Tag_ListController
  • Mage_Tag_Model_Api
  • Mage_Tag_Model_Api_V2
  • Mage_Tag_Model_Entity_Customer_Collection
  • Mage_Tag_Model_Indexer_Summary
  • Mage_Tag_Model_Mysql4_Customer_Collection
  • Mage_Tag_Model_Mysql4_Indexer_Summary
  • Mage_Tag_Model_Mysql4_Popular_Collection
  • Mage_Tag_Model_Mysql4_Product_Collection
  • Mage_Tag_Model_Mysql4_Tag
  • Mage_Tag_Model_Mysql4_Tag_Collection
  • Mage_Tag_Model_Mysql4_Tag_Relation
  • Mage_Tag_Model_Resource_Customer_Collection
  • Mage_Tag_Model_Resource_Indexer_Summary
  • Mage_Tag_Model_Resource_Popular_Collection
  • Mage_Tag_Model_Resource_Product_Collection
  • Mage_Tag_Model_Resource_Tag
  • Mage_Tag_Model_Resource_Tag_Collection
  • Mage_Tag_Model_Resource_Tag_Relation
  • Mage_Tag_Model_Session
  • Mage_Tag_Model_Tag
  • Mage_Tag_Model_Tag_Relation
  • Mage_Tag_ProductController
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Tag_Model_Tag_Relation

Tag relation model

Varien_Object
Extended by Mage_Core_Model_Abstract
Extended by Mage_Tag_Model_Tag_Relation
Package: Mage\Tag
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/Tag/Model/Tag/Relation.php
Methods summary
protected
# _construct( )

Initialize resource model

Initialize resource model

protected Mage_Tag_Model_Mysql4_Tag_Relation
# _getResource( )

Retrieve Resource Instance wrapper

Retrieve Resource Instance wrapper

Returns

Mage_Tag_Model_Mysql4_Tag_Relation

Overrides

Mage_Core_Model_Abstract::_getResource()
public Mage_Tag_Model_Tag_Relation
# afterCommitCallback( )

Init indexing process after tag data commit

Init indexing process after tag data commit

Returns

Mage_Tag_Model_Tag_Relation

Overrides

Mage_Core_Model_Abstract::afterCommitCallback()
public Mage_Tag_Model_Tag_Relation
# loadByTagCustomer( integer $productId = null, integer $tagId, integer $customerId, integer $storeId = null )

Load relation by Product (optional), tag, customer and store

Load relation by Product (optional), tag, customer and store

Parameters

$productId
integer
$productId
$tagId
integer
$tagId
$customerId
integer
$customerId
$storeId
integer
$storeId

Returns

Mage_Tag_Model_Tag_Relation
public array
# getProductIds( )

Retrieve Relation Product Ids

Retrieve Relation Product Ids

Returns

array
public array
# getRelatedTagIds( )

Retrieve list of related tag ids for products specified in current object

Retrieve list of related tag ids for products specified in current object

Returns

array
public Mage_Tag_Model_Tag_Relation
# deactivate( )

Deactivate tag relations (using current settings)

Deactivate tag relations (using current settings)

Returns

Mage_Tag_Model_Tag_Relation
public Mage_Tag_Model_Tag_Relation
# addRelations( Mage_Tag_Model_Tag $model, array $productIds = array() )

Add TAG to PRODUCT relations

Add TAG to PRODUCT relations

Parameters

$model
Mage_Tag_Model_Tag
$model
$productIds
array
$productIds

Returns

Mage_Tag_Model_Tag_Relation
Methods inherited from Mage_Core_Model_Abstract
_afterDelete(), _afterDeleteCommit(), _afterLoad(), _afterSave(), _beforeDelete(), _beforeLoad(), _beforeSave(), _clearData(), _clearReferences(), _getEventData(), _hasModelChanged(), _init(), _protectFromNonAdmin(), _setResourceModel(), afterLoad(), cleanModelCache(), clearInstance(), delete(), getCacheIdTags(), getCacheTags(), getCollection(), getEntityId(), getId(), getIdFieldName(), getResource(), getResourceCollection(), getResourceName(), isObjectNew(), load(), save(), setId()
Constants summary
integer STATUS_ACTIVE 1
#

Relation statuses

Relation statuses

integer STATUS_NOT_ACTIVE 0
#
string ENTITY 'tag_relation'
#

Entity code. Can be used as part of method name for entity processing

Entity code. Can be used as part of method name for entity processing

Properties inherited from Mage_Core_Model_Abstract
$_cacheTag, $_dataSaveAllowed, $_eventObject, $_eventPrefix, $_isObjectNew, $_resource, $_resourceCollectionName, $_resourceName
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0