protected function _construct()
 {
     parent::_construct();
     // disabled data from saving
     $this->_dataSaveAllowed = false;
     // Initialize the various collections that need to overridden to use
     // plain Varien_Data_Collections instead of DB backed resource collections.
     // This eliminates the need for most method overrides as all of the methods
     // will simply return the existing collection when it is already set.
     /** @see Mage_Sales_Model_Order::$_addresses */
     $this->_addresses = $this->_coreHelper->getNewVarienDataCollection();
     /** @see Mage_Sales_Model_Order::$_shipments */
     $this->_shipments = $this->_coreHelper->getNewVarienDataCollection();
     /** @see Mage_Sales_Model_Order::$_items */
     $this->_items = $this->_coreHelper->getNewVarienDataCollection();
     /** @see Mage_Sales_Model_Order::$_payments */
     $this->_payments = $this->_coreHelper->getNewVarienDataCollection();
     /** @see Mage_Sales_Model_Order::$_statusHistory */
     $this->_statusHistory = $this->_coreHelper->getNewVarienDataCollection();
     /** @see Mage_Sales_Model_Order::$_invoices */
     $this->_invoices = $this->_coreHelper->getNewVarienDataCollection();
     /** @see Mage_Sales_Model_Order::$_tracks */
     $this->_tracks = $this->_coreHelper->getNewVarienDataCollection();
     /** @see Mage_Sales_Model_Order::$_creditmemos */
     $this->_creditmemos = $this->_coreHelper->getNewVarienDataCollection();
     $this->_shipGroups = $this->_coreHelper->getNewVarienDataCollection();
 }
 /**
  * Build a collection of order item from this particular ship group
  *
  * @param bool
  * @return Varien_Data_Collection
  */
 protected function _buildItemsCollection($includeHidden)
 {
     $items = $this->_coreHelper->getNewVarienDataCollection();
     foreach ($this->getOrderItems() as $itemId) {
         $item = $this->_order->getItemsCollection()->getItemByColumnValue('ref_id', $itemId);
         if ($item && ($includeHidden || !$item->getIsHiddenGift())) {
             $items->addItem($item);
         }
     }
     return $items;
 }
 /**
  * Make ROM order summary search when we have a valid logged in customer
  * id in the customer session otherwise simply return an empty collection.
  *
  * @return Varien_Data_Collection
  */
 public function getCurCustomerOrders()
 {
     $customerId = $this->_getPrefixedCurrentCustomerId();
     return !is_null($customerId) ? $this->_factory->getNewRomOrderSearch($customerId)->process() : $this->_coreHelper->getNewVarienDataCollection();
 }