Пример #1
0
 /**
  * @param Mage_Sales_Model_Abstract $entity
  * @param Mage_Sales_Model_Order    $order
  * @param string                    $context
  *
  * @return mixed
  */
 protected function getAllOrderItems($entity, $order, $context)
 {
     $this->_order = $order;
     if ($context == self::TYPE_RS) {
         return $entity->getAllItems();
     }
     return $order->getAllItems();
 }