/** * Return specific for JS code widget options * * @return array */ protected function getDatePickerOptions() { $currentFormats = \XLite\Core\Converter::getDateFormatsByStrftimeFormat(); return array('dateFormat' => $currentFormats['jsFormat'], 'highYear' => $this->getParam(static::PARAM_HIGH_YEAR), 'lowYear' => $this->getParam(static::PARAM_LOW_YEAR)); }
/** * Register some data that will be sent to template as special HTML comment * * @return array */ protected function getCommentedData() { $data = parent::getCommentedData(); $currentFormats = \XLite\Core\Converter::getDateFormatsByStrftimeFormat(); $data['dateFormat'] = $currentFormats['jsFormat']; return $data; }