Example #1
0
 public function createFromObject(Varien_Object $object)
 {
     try {
         $summary = Mage::getModel('points/summary')->setCustomerId($object->getEntityId())->setBalanceUpdateNotification($object->getSubscribedByDefault())->setPointsExpirationNotification($object->getSubscribedByDefault())->save();
     } catch (Exception $e) {
         Mage::logException($e);
     }
     if (!isset($summary) || !$summary->getId()) {
         return false;
     }
     return $summary;
 }