本文整理匯總了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>