当前位置: 首页>>代码示例>>PHP>>正文


PHP vRequest::getBool方法代码示例

本文整理汇总了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
 }
开发者ID:proyectoseb,项目名称:Matrix,代码行数:8,代码来源:view.html.php

示例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;
开发者ID:ForAEdesWeb,项目名称:AEW9,代码行数:31,代码来源:default_reviews.php

示例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
 }
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:8,代码来源:view.html.php

示例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 
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:29,代码来源:default_pdf.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>';
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:30,代码来源:order_done.php

示例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>';
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:30,代码来源:order_done.php


注:本文中的vRequest::getBool方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。