Class Mage_Tag_Model_Tag_Relation

Description

Tag relation model

Located in /Tag/Model/Tag/Relation.php (line 35)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_Tag_Model_Tag_Relation
Class Constant Summary
ENTITY = 'tag_relation'
Method Summary
Variables
Methods
addRelations (line 149)

Add TAG to PRODUCT relations

  • access: public
Mage_Tag_Model_Tag_Relation addRelations (Mage_Tag_Model_Tag $model, [array $productIds = array()])
afterCommitCallback (line 73)

Init indexing process after tag data commit

  • access: public
Mage_Tag_Model_Tag_Relation afterCommitCallback ()

Redefinition of:
Mage_Core_Model_Abstract::afterCommitCallback()
Callback function which called after transaction commit in resource model
deactivate (line 136)

Deactivate tag relations (using current settings)

  • access: public
getProductIds (line 108)

Retrieve Relation Product Ids

  • access: public
array getProductIds ()
getRelatedTagIds (line 123)

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

  • access: public
array getRelatedTagIds ()
loadByTagCustomer (line 91)

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

  • access: public
Mage_Tag_Model_Tag_Relation loadByTagCustomer ([int $productId = null], int $tagId, int $customerId, [int $storeId = null])
  • int $productId
  • int $tagId
  • int $customerId
  • int $storeId
_construct (line 53)

Initialize resource model

  • access: protected
void _construct ()
_getResource (line 63)

Retrieve Resource Instance wrapper

  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::_getResource()
Get resource instance

Inherited Methods

Inherited From Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()
Class Constants
ENTITY = 'tag_relation' (line 47)

Entity code.

Can be used as part of method name for entity processing

STATUS_ACTIVE = 1 (line 40)

Relation statuses

STATUS_NOT_ACTIVE = 0 (line 41)

Documentation generated on Fri, 11 Feb 2011 17:11:06 +0200 by phpDocumentor 1.4.3