Public Member Functions | |
setOrderFilter ($order) | |
Protected Member Functions | |
_construct () |
Definition at line 35 of file Collection.php.
_construct | ( | ) | [protected] |
Initialize collection
Reimplemented from Mage_Eav_Model_Entity_Collection_Abstract.
Definition at line 37 of file Collection.php.
00038 { 00039 $this->_init('sales/order_shipment'); 00040 }
setOrderFilter | ( | $ | order | ) |
Definition at line 42 of file Collection.php.
00043 { 00044 if ($order instanceof Mage_Sales_Model_Order) { 00045 $this->addAttributeToFilter('order_id', $order->getId()); 00046 } 00047 else { 00048 $this->addAttributeToFilter('order_id', $order); 00049 } 00050 00051 return $this; 00052 }