本文整理汇总了PHP中Review::showReview方法的典型用法代码示例。如果您正苦于以下问题:PHP Review::showReview方法的具体用法?PHP Review::showReview怎么用?PHP Review::showReview使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Review
的用法示例。
在下文中一共展示了Review::showReview方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Query
<?php
include "header_inc.php";
?>
<div id="centerDiv">
<div class="newsBg">
<?php
$review = new Query("recensioner");
$review->whereQuery("*", "active", 1, "date", "DESC", 10000);
$paging = new Paging($review, 20);
$paging->where();
$reviewShow = new Review($review);
$reviewShow->showReview();
$reviewShow->listReviews($paging);
?>
<?php
echo $paging->previousShow("se", "smallPink") . ' ' . $paging->nextShow("se", "smallPink") . '<br />' . $paging->linksShow2("se", "smallGray", "smallPink");
?>
</div>
</div>
<?php
include "footer.php";
示例2: Session
<?php
require_once 'model/session.php';
$session = new Session();
$data = NULL;
$menu_data = [];
if (isset($_GET['id'])) {
require_once 'model/restaurant.php';
require_once 'model/menu.php';
require_once 'model/review.php';
$restaurant = new Restaurant();
$menu = new Menu($_GET['id']);
$review = new Review();
$data = $restaurant->find('id', $_GET['id']);
$menu_data = $menu->multipleFind('restaurant_id', $_GET['id']);
$reviews = $review->showReview($_GET['id']);
$countReview = $review->find2('user_id', $session->get_session_data('id'), 'restaurant_id', $_GET['id']);
$countReview = count($countReview);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<?php
include "./include/header.php";
?>
<title>Restaurant Finder</title>
</head>
<body>