本文整理汇总了PHP中TiendaHelperBase::getSessionVariable方法的典型用法代码示例。如果您正苦于以下问题:PHP TiendaHelperBase::getSessionVariable方法的具体用法?PHP TiendaHelperBase::getSessionVariable怎么用?PHP TiendaHelperBase::getSessionVariable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TiendaHelperBase
的用法示例。
在下文中一共展示了TiendaHelperBase::getSessionVariable方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
* @version 1.5
* @package Tienda
* @author Dioscouri Design
* @link http://www.dioscouri.com
* @copyright Copyright (C) 2009 Dioscouri Design. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
Tienda::load('TiendaHelperBase', 'helpers._base');
Tienda::load('TiendaSelect', 'library.select');
JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tienda/tables');
$helper = TiendaHelperBase::getInstance();
$url = JRoute::_('index.php?option=com_tienda&view=products&task=setCurrency&return=' . base64_encode(JURI::getInstance()->toString()), false);
// Check the currently selected currency
$selected = TiendaHelperBase::getSessionVariable('currency_id', Tienda::getInstance()->get('default_currencyid', 1));
?>
<div id="currency">
<form action="<?php
echo $url;
?>
" method="post" name="currencySwitch">
<?php
echo JText::_('COM_TIENDA_SELECT_CURRENCY') . ': ';
?>
<?php
$attribs = array('onChange' => 'document.currencySwitch.submit(); ');
?>
<?php
echo TiendaSelect::currency($selected, 'currency_id', $attribs);