Ejemplo n.º 1
0
 public function toOptionArray()
 {
     if (!self::$_options) {
         self::$_options = array(array('label' => Mage::helper('orderstatusimport')->__('Every minute (not recommended)'), 'value' => self::CRON_MINUTE), array('label' => Mage::helper('orderstatusimport')->__('Every 5 minutes'), 'value' => self::CRON_FIVEMINUTES), array('label' => Mage::helper('orderstatusimport')->__('Every 10 minutes'), 'value' => self::CRON_TENMINUTES), array('label' => Mage::helper('orderstatusimport')->__('Every 20 minutes'), 'value' => self::CRON_TWENTYMINUTES), array('label' => Mage::helper('orderstatusimport')->__('Every 30 minutes'), 'value' => self::CRON_HALFHOURLY), array('label' => Mage::helper('orderstatusimport')->__('Every hour'), 'value' => self::CRON_HOURLY), array('label' => Mage::helper('orderstatusimport')->__('Every 12 hours'), 'value' => self::CRON_TWICEDAILY), array('label' => Mage::helper('cron')->__('Daily'), 'value' => self::CRON_DAILY), array('label' => Mage::helper('cron')->__('Weekly'), 'value' => self::CRON_WEEKLY));
     }
     return self::$_options;
 }
Ejemplo n.º 2
0
 public function afterLoad()
 {
     $this->setValue(Xtento_OrderStatusImport_Model_System_Config_Source_Cron_Frequency::getCronFrequency());
 }