本文整理汇总了PHP中vRequest::getBool方法的典型用法代码示例。如果您正苦于以下问题:PHP vRequest::getBool方法的具体用法?PHP vRequest::getBool怎么用?PHP vRequest::getBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vRequest
的用法示例。
在下文中一共展示了vRequest::getBool方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lOrderDone
private function lOrderDone()
{
$display_title = vRequest::getBool('display_title', true);
$this->assignRef('display_title', $display_title);
//Do not change this. It contains the payment form
$this->html = vRequest::get('html', vmText::_('COM_VIRTUEMART_ORDER_PROCESSED'));
//Show Thank you page or error due payment plugins like paypal express
}
示例2: defined
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default_reviews.php 8508 2014-10-22 18:57:14Z Milbo $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
// Customer Reviews
$review_editable = true;
if ($this->allowRating || $this->allowReview || $this->showRating || $this->showReview) {
$maxrating = VmConfig::get('vm_maximum_rating_scale', 5);
$ratingsShow = VmConfig::get('vm_num_ratings_show', 3);
// TODO add vm_num_ratings_show in vmConfig
$stars = array();
$showall = vRequest::getBool('showall', FALSE);
$ratingWidth = $maxrating * 24;
for ($num = 0; $num <= $maxrating; $num++) {
$stars[] = '
<span title="' . (vmText::_("COM_VIRTUEMART_RATING_TITLE") . $num . '/' . $maxrating) . '" class="vmicon ratingbox" style="display:inline-block;width:' . 24 * $maxrating . 'px;">
<span class="stars-orange" style="width:' . 24 * $num . 'px">
</span>
</span>';
}
echo '<div class="customer-reviews">';
if ($this->rating_reviews) {
foreach ($this->rating_reviews as $review) {
/* Check if user already commented */
// if ($review->virtuemart_userid == $this->user->id ) {
if ($review->created_by == $this->user->id && !$review->review_editable) {
$review_editable = false;
示例3: lOrderDone
private function lOrderDone()
{
$this->display_title = !isset($this->display_title) ? vRequest::getBool('display_title', true) : $this->display_title;
$this->display_loginform = !isset($this->display_loginform) ? vRequest::getBool('display_loginform', true) : $this->display_loginform;
//Do not change this. It contains the payment form
$this->html = !isset($this->html) ? vRequest::get('html', vmText::_('COM_VIRTUEMART_ORDER_PROCESSED')) : $this->html;
//Show Thank you page or error due payment plugins like paypal express
}
示例4: array
<?php
// Related Products
?>
<?php
// Customer Reviews
if ($this->allowRating || $this->showReview) {
$maxrating = VmConfig::get('vm_maximum_rating_scale', 5);
$ratingsShow = VmConfig::get('vm_num_ratings_show', 3);
// TODO add vm_num_ratings_show in vmConfig
$starsPath = JURI::root() . VmConfig::get('assets_general_path') . 'images/stars/';
$stars = array();
$showall = vRequest::getBool('showall', false);
for ($num = 0; $num <= $maxrating; $num++) {
$title = vmText::_("VM_RATING_TITLE") . ' : ' . $num . '/' . $maxrating;
$stars[] = JHtml::image($starsPath . $num . '.gif', vmText::_($num . '_STARS'), array("title" => $title));
}
?>
<div class="customer-reviews">
<?php
}
if ($this->showReview) {
$alreadycommented = false;
?>
<h4><?php
示例5: defined
defined('_JEXEC') or die('');
/**
*
* Template for the shopping cart
*
* @package VirtueMart
* @subpackage Cart
* @author Max Milbers
*
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
if (vRequest::getBool('display_loginform', true)) {
$cuser = JFactory::getUser();
if (!$cuser->guest) {
echo shopFunctionsF::getLoginForm();
}
}
echo '<div class="vm-wrap vm-order-done">';
if (vRequest::getBool('display_title', true)) {
echo '<h3>' . vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU') . '</h3>';
}
$this->html = vRequest::get('html', vmText::_('COM_VIRTUEMART_ORDER_PROCESSED'));
echo $this->html;
echo '</div>';
示例6: defined
defined('_JEXEC') or die('');
/**
*
* Template for the shopping cart
*
* @package VirtueMart
* @subpackage Cart
* @author Max Milbers
*
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
echo '<div class="vm-wrap vm-order-done">';
if (vRequest::getBool('display_title', true)) {
echo '<h3>' . vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU') . '</h3>';
}
$this->html = vRequest::get('html', vmText::_('COM_VIRTUEMART_ORDER_PROCESSED'));
echo $this->html;
if (vRequest::getBool('display_loginform', true)) {
$cuser = JFactory::getUser();
if (!$cuser->guest) {
echo shopFunctionsF::getLoginForm();
}
}
echo '</div>';