本文整理汇总了PHP中Dispatcher::main_get_pages_info方法的典型用法代码示例。如果您正苦于以下问题:PHP Dispatcher::main_get_pages_info方法的具体用法?PHP Dispatcher::main_get_pages_info怎么用?PHP Dispatcher::main_get_pages_info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dispatcher
的用法示例。
在下文中一共展示了Dispatcher::main_get_pages_info方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
</div>
<div class="text_menu">
<div class="map-container">
<div id="map-canvas"></div>
</div>
<div id="map_main_wrapper">
<!-- <div class="main-view-upper-menu">
<?php
$menu_array = Dispatcher::main_get_pages_info("nojson", $lang);
for ($i = 0; $i < count($menu_array); $i++) {
?>
<button onclick="get_page_modal_text_info(<?php
echo $i;
?>
, '<?php
echo $menu_array[$i]['page_title_low'];
?>
');"
id="main_view_<?php
echo $menu_array[$i]['page_title_low'];
?>
"
data-toggle='modal'
class="main-view-menu-item"
示例2:
$reserve_type = $_POST['reserve_type'];
$data_action = $_POST['data_action'];
Dispatcher::booking_compare_hours($from, $to, $type, $during_type, $reserve_type, $data_action);
}
if ($action == 'booking_remove_instructor') {
$id = $_POST['id'];
Dispatcher::booking_remove_instructor($id);
}
if ($action == 'booking_create_reservation') {
$post = $_POST;
Dispatcher::booking_create_reservation($post);
}
if ($action == 'booking_change_instructor') {
$post = $_POST;
Dispatcher::booking_change_instructor($post);
}
if ($action == 'main_get_pages_info') {
$response_type = $_POST['response_type'];
Dispatcher::main_get_pages_info($response_type, $language);
}
if ($action == 'main_edit_page_popup') {
$title = $_POST['title'];
$subtitle = $_POST['subtitle'];
$content = $_POST['content'];
$text_id = $_POST['text_id'];
Dispatcher::main_edit_page_popup($text_id, $title, $subtitle, $content, $language);
}
if ($action == 'booking_get_choosen_places') {
$date = $_POST['date'];
Dispatcher::booking_get_choosen_places($date);
}