Exemple #1
0
 protected function _writeOrders(Varien_Data_Collection $orders, XMLWriter $xml, $storeId = null)
 {
     $xml->startElement('Orders');
     $xml->writeAttribute('pages', $orders->getLastPageNumber());
     foreach ($orders as $order) {
         $this->_writeOrder($order, $xml, $storeId);
     }
     $xml->startElement('Query');
     $xml->writeCdata($orders->getSelectSql());
     $xml->endElement();
     // Query
     $xml->startElement('Version');
     $xml->writeCdata('Magento ' . Mage::getVersion());
     $xml->endElement();
     // Version
     $xml->startElement('Extensions');
     $xml->writeCdata(Mage::helper('auctaneapi')->getModuleList());
     $xml->endElement();
     // Extensions
     $xml->endElement();
     // Orders
 }