Public Member Functions | |
toOptionArray () | |
Protected Attributes | |
$_stateStatuses |
Definition at line 30 of file Status.php.
toOptionArray | ( | ) |
Definition at line 43 of file Status.php.
00044 { 00045 if ($this->_stateStatuses) { 00046 $statuses = Mage::getSingleton('sales/order_config')->getStateStatuses($this->_stateStatuses); 00047 } 00048 else { 00049 $statuses = Mage::getSingleton('sales/order_config')->getStatuses(); 00050 } 00051 $options = array(); 00052 $options[] = array( 00053 'value' => '', 00054 'label' => Mage::helper('adminhtml')->__('-- Please Select --') 00055 ); 00056 foreach ($statuses as $code=>$label) { 00057 $options[] = array( 00058 'value' => $code, 00059 'label' => $label 00060 ); 00061 } 00062 return $options; 00063 }
$_stateStatuses [protected] |
Initial value:
array( Mage_Sales_Model_Order::STATE_NEW, Mage_Sales_Model_Order::STATE_PROCESSING, Mage_Sales_Model_Order::STATE_COMPLETE, Mage_Sales_Model_Order::STATE_CLOSED, Mage_Sales_Model_Order::STATE_CANCELED, Mage_Sales_Model_Order::STATE_HOLDED, )
Reimplemented in Mage_Adminhtml_Model_System_Config_Source_Order_Status_New, Mage_Adminhtml_Model_System_Config_Source_Order_Status_Newprocessing, and Mage_Adminhtml_Model_System_Config_Source_Order_Status_Processing.
Definition at line 33 of file Status.php.