本文整理匯總了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");