Mage_Tag_Model_Tag_Relation Class Reference

Inheritance diagram for Mage_Tag_Model_Tag_Relation:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 loadByTagCustomer ($productId=null, $tagId, $customerId, $storeId=null)
 getProductIds ()
 deactivate ()

Public Attributes

const STATUS_ACTIVE = 1

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Relation.php.


Member Function Documentation

_construct (  )  [protected]

Enter description here...

Reimplemented from Varien_Object.

Definition at line 39 of file Relation.php.

00040     {
00041         $this->_init('tag/tag_relation');
00042     }

deactivate (  ) 

Definition at line 66 of file Relation.php.

00067     {
00068         $this->_getResource()->deactivate($this->getTagId(),  $this->getCustomerId());
00069         return $this;
00070     }

getProductIds (  ) 

Definition at line 56 of file Relation.php.

00057     {
00058         $ids = $this->getData('product_ids');
00059         if (is_null($ids)) {
00060             $ids = $this->_getResource()->getProductIds($this);
00061             $this->setProductIds($ids);
00062         }
00063         return $ids;
00064     }

loadByTagCustomer ( productId = null,
tagId,
customerId,
storeId = null 
)

Definition at line 44 of file Relation.php.

00045     {
00046         $this->setProductId($productId);
00047         $this->setTagId($tagId);
00048         $this->setCustomerId($customerId);
00049         if(!is_null($storeId)) {
00050             $this->setStoreId($storeId);
00051         }
00052         $this->_getResource()->loadByTagCustomer($this);
00053         return $this;
00054     }


Member Data Documentation

const STATUS_ACTIVE = 1

Definition at line 37 of file Relation.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:53 2009 for Magento by  doxygen 1.5.8