Пример #1
0
 /**
  * Get order 
  * 
  * @param \XLite\Model\AEntity $entity Entity
  *  
  * @return \XLite\Model\Order
  */
 protected function getOrder(\XLite\Model\AEntity $entity)
 {
     return $entity ? $entity->getTransaction()->getOrder() : null;
 }
Пример #2
0
 /**
  * Is transaction marked as fraud
  *
  * @return bool
  */
 public function isFraudStatus(\XLite\Model\AEntity $entity)
 {
     $transaction = $entity->getTransaction();
     return $transaction->getDataCell('xpc_is_fraud_status') && $transaction->getDataCell('xpc_is_fraud_status')->getValue();
 }