本文整理汇总了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() . '