本文整理汇总了PHP中TimeDate::getMySQLDate方法的典型用法代码示例。如果您正苦于以下问题:PHP TimeDate::getMySQLDate方法的具体用法?PHP TimeDate::getMySQLDate怎么用?PHP TimeDate::getMySQLDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TimeDate
的用法示例。
在下文中一共展示了TimeDate::getMySQLDate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jTipsGetParam
$class = jTipsGetParam($_REQUEST, 'table', 'jSeason');
//BUG 284 - class jtipsuser has no matching file
$file = $class;
if (strtolower($file) == 'jtipsuser') {
$file = 'juser';
}
$classFile = 'components/com_jtips/classes/' . strtolower($file) . '.class.php';
if (!file_exists($classFile)) {
jTipsLogger::_log('Failed to export object of type ' . $file . ' - class file not found!', 'ERROR');
mosRedirect('index2.php?option=com_jtips&task=list&module=Export', 'Export Failed');
} else {
require_once $classFile;
}
$jObj = new $class($database);
$report = $jObj->export();
$filename = "components/com_jtips/exports/{$class}_" . TimeDate::getMySQLDate() . ".csv";
jTipsLogger::_log('exporting file for ' . $class . ' to target file: ' . $filename);
//jTipsDebug($report);
//die();
if (writeFile($filename, $report)) {
ob_end_clean();
header("Pragma: public");
// required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false);
// required for certain browsers
header('Content-Description: File Transfer');
header('Content-Type: application/vnd.ms-excel');
header("Content-Disposition: inline; filename=\"" . basename($filename) . "\";");
header("Content-Transfer-Encoding: binary");