Пример #1
0
 /**
  * Get default options
  *
  * @return array
  */
 protected function getDefaultOptions()
 {
     $time = \XLite\Core\Converter::time();
     $allowedDateFormats = \XLite\Core\Converter::getAvailableDateFormats();
     $options = array();
     foreach ($allowedDateFormats as $phpFormat => $formats) {
         $options[$phpFormat] = \XLite\Core\Converter::formatDate($time, $phpFormat);
     }
     return $options;
 }