本文整理汇总了PHP中Agenda::getPlaces方法的典型用法代码示例。如果您正苦于以下问题:PHP Agenda::getPlaces方法的具体用法?PHP Agenda::getPlaces怎么用?PHP Agenda::getPlaces使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Agenda
的用法示例。
在下文中一共展示了Agenda::getPlaces方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getView
protected function getView()
{
$data = $this->getParsedData();
foreach ($data as $name => $term) {
if (in_array($name, $this->transportTerms) && $term) {
$str = '<ul>';
foreach ($term as $transport) {
$str .= "<li>{$transport['name']}</li>";
}
$str .= '</ul>';
$data[$name] = $str;
}
}
$places = parent::getPlaces();
$data['place'] = isset($places[$data['place']]) ? $places[$data['place']]['name'] : null;
$data['total_price'] = number_format($data['total_price'], 2);
$data['total_hours'] = DTime::formatMinutesToHours($this->totalMinutes);
return $data;
}
示例2: foreach
<th style="width: 20%">הערות</th>
<th></th>
</tr>
<tr>
<td><?php
DTime::timePicker('start');
?>
</td>
<td><?php
DTime::timePicker('end');
?>
</td>
<td>
<select name="place">
<?php
foreach ($agenda->getPlaces() as $key => $place) {
echo "<option value='{$key}'>{$place['name']}</option>";
}
?>
</select>
</td>
<td>
<div class="checkbox-group">
<?php
foreach ($transports as $key => $transport) {
?>
<div class="checkbox-wrapper">
<input id="gm-<?php
echo $key;
?>
" type="checkbox" name='getting_mean[]'