Exemplo n.º 1
0
 /**
  * Returns founded customer or preset entity
  * @return Mage_Customer_Model_Customer | Varien_Object
  */
 public function getCustomer(AW_Helpdeskultimate_Model_Proto $proto)
 {
     $customer = Mage::getModel('customer/customer')->load($proto->getFrom());
     if ($customer->getId()) {
         return $customer;
     } else {
         Mage::throwException("Can not load customer. Reason: customer is missing");
         return null;
     }
 }