本文整理匯總了PHP中CTimeHelper::convertSQLtimetoChunk方法的典型用法代碼示例。如果您正苦於以下問題:PHP CTimeHelper::convertSQLtimetoChunk方法的具體用法?PHP CTimeHelper::convertSQLtimetoChunk怎麽用?PHP CTimeHelper::convertSQLtimetoChunk使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CTimeHelper
的用法示例。
在下文中一共展示了CTimeHelper::convertSQLtimetoChunk方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: joms_mod_eventscalendar_init
});
// initialize calender
function joms_mod_eventscalendar_init($) {
$('#calendar').eCalendar({
weekDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
textArrows: {previous: '◀', next: '▶'},
eventTitle: 'Events',
url: '',
events: [
<?php
$config = CFactory::getConfig();
$showAmpm = $config->get('eventshowampm');
foreach ($events as $event) {
$date = CTimeHelper::convertSQLtimetoChunk($event->startdate);
?>
{
title: '<?php
echo str_replace("'", "\\'", $event->title);
?>
',
description: '<?php
echo str_replace("'", "\\'", preg_replace("/\r?\n/", " ", $event->description));
?>
',
url: '<?php
echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id);
?>
',
showAmpm: +'<?php