Example #1
0
 /**
  * Declare link model and initialize type attributes join
  *
  * @param Mage_Catalog_Model_Product_Link $linkModel
  * @return Mage_Catalog_Model_Resource_Product_Link_Collection
  */
 public function setLinkModel(Mage_Catalog_Model_Product_Link $linkModel)
 {
     $this->_linkModel = $linkModel;
     if ($linkModel->hasLinkTypeId()) {
         $this->_linkTypeId = $linkModel->getLinkTypeId();
     }
     return $this;
 }