Public Member Functions | |
toOptionArray () |
Definition at line 28 of file Image.php.
toOptionArray | ( | ) |
Definition at line 30 of file Image.php.
00031 { 00032 $sizes = array( 00033 '180/46' => Mage::helper('googlecheckout')->__('Large - %s', '180x46'), 00034 '168/44' => Mage::helper('googlecheckout')->__('Medium - %s', '168x44'), 00035 '160/43' => Mage::helper('googlecheckout')->__('Small - %s', '160x43'), 00036 ); 00037 00038 $styles = array( 00039 'trans' => Mage::helper('googlecheckout')->__('Transparent'), 00040 'white' => Mage::helper('googlecheckout')->__('White Background'), 00041 ); 00042 00043 $options = array(); 00044 foreach ($sizes as $size=>$sizeLabel) { 00045 foreach ($styles as $style=>$styleLabel) { 00046 $options[] = array( 00047 'value' => $size.'/'.$style, 00048 'label' => $sizeLabel.' ('.$styleLabel.')' 00049 ); 00050 } 00051 } 00052 00053 return $options; 00054 }