Mage_Adminhtml_Model_System_Config_Source_Language Class Reference

List of all members.

Public Member Functions

 toOptionArray ($isMultiselect)

Protected Attributes

 $_options


Detailed Description

Definition at line 28 of file Language.php.


Member Function Documentation

toOptionArray ( isMultiselect  ) 

Definition at line 32 of file Language.php.

00033     {
00034         if (!$this->_options) {
00035             $this->_options = Mage::getResourceModel('core/language_collection')->loadData()->toOptionArray();
00036         }
00037         $options = $this->_options;
00038         if(!$isMultiselect){
00039             array_unshift($options, array('value'=>'', 'label'=>''));
00040         }
00041         return $options;
00042     }


Member Data Documentation

$_options [protected]

Definition at line 30 of file Language.php.


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