/**
  * Returns the customer ID for handling
  * the serialz for.
  *
  * @return integer The ID of the customer
  */
 protected function _getCustomerId()
 {
     return $this->_linkPurchased->getCustomerId();
 }
 /**
  * Create and return a hash for the download link.
  *
  * @return string The requested hash
  */
 public function serialz()
 {
     // encrypt the hash for the download link
     return Mage::helper('core')->getEncryptor()->encrypt(microtime() . $this->_linkPurchased->getCustomerId() . $this->_linkPurchased->getProductId() . $this->_linkPurchased->getPurchasedId());
 }