
Public Member Functions | |
| loadByTagCustomer ($productId=null, $tagId, $customerId, $storeId=null) | |
| getProductIds () | |
| deactivate () | |
Public Attributes | |
| const | STATUS_ACTIVE = 1 |
Protected Member Functions | |
| _construct () | |
Definition at line 35 of file Relation.php.
| _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 }
| const STATUS_ACTIVE = 1 |
Definition at line 37 of file Relation.php.
1.5.8