本文整理匯總了PHP中Dataset::getDateString方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dataset::getDateString方法的具體用法?PHP Dataset::getDateString怎麽用?PHP Dataset::getDateString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dataset
的用法示例。
在下文中一共展示了Dataset::getDateString方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
if ($this->showPublicLink) {
$this->Dataset->displayPublicIcon();
}
$this->Dataset->displayTableColumns();
echo '</tr>';
}
} else {
echo '
<tr class="r' . $trClass . '">
<td class="l" style="width:24px;">';
foreach ($day['shorts'] as $short) {
$this->Dataset->setActivityData($short);
$this->Dataset->displayShortLink();
}
echo '</td>
<td class="l as-small-as-possible">' . Dataset::getDateString($day['date']) . '</td>
<td colspan="' . ($this->Dataset->cols() + $this->showPublicLink) . '"></td>
</tr>';
}
}
echo '</tbody>';
echo '<tbody>';
// Z U S A M M E N F A S S U N G
$WhereNotPrivate = FrontendShared::$IS_SHOWN && !\Runalyze\Configuration::Privacy()->showPrivateActivitiesInList() ? 'AND is_public=1' : '';
$sports = DB::getInstance()->query('SELECT `id`, `time`, `sportid`, SUM(1) as `num` FROM `' . PREFIX . 'training` WHERE `time` BETWEEN ' . ($this->timestamp_start - 10) . ' AND ' . ($this->timestamp_end - 10) . ' AND accountid = ' . SessionAccountHandler::getId() . ' ' . $WhereNotPrivate . ' GROUP BY `sportid` ORDER BY `num` DESC')->fetchAll();
foreach ($sports as $i => $sportdata) {
$Sport = new Sport($sportdata['sportid']);
echo '<tr class="r no-zebra">
<td colspan="' . $this->additionalColumns . '">
<small>' . $sportdata['num'] . 'x</small>
' . $Sport->name() . '