Mage_Adminhtml_Model_System_Config_Source_Order_Status Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Source_Order_Status:

Mage_Adminhtml_Model_System_Config_Source_Order_Status_New Mage_Adminhtml_Model_System_Config_Source_Order_Status_Newprocessing Mage_Adminhtml_Model_System_Config_Source_Order_Status_Processing

List of all members.

Public Member Functions

 toOptionArray ()

Protected Attributes

 $_stateStatuses


Detailed Description

Order Statuses source model

Definition at line 30 of file Status.php.


Member Function Documentation

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     }


Member Data Documentation

$_stateStatuses [protected]


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:14 2009 for Magento by  doxygen 1.5.8