Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/j3/components/com_phocacart/views/info/ |
| [Home] [System Details] [Kill Me] |
<?php
/* @package Joomla
* @copyright Copyright (C) Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* @extension Phoca Extension
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view');
class PhocaCartViewInfo extends JViewLegacy
{
protected $t;
protected $r;
protected $p;
protected $u;
protected $s;
function display($tpl = null) {
$document = JFactory::getDocument();
$app = JFactory::getApplication();
$uri = \Joomla\CMS\Uri\Uri::getInstance();
$this->u = PhocacartUser::getUser();
$this->p = $app->getParams();
$this->s = PhocacartRenderStyle::getStyles();
$this->t['info_view_description'] = $this->p->get(
'info_view_description', '' );
$this->t['info_view_description'] =
PhocacartRenderFront::renderArticle($this->t['info_view_description']);
$session = JFactory::getSession();
$this->t['infoaction'] =
$session->get('infoaction', 0, 'phocaCart');
$this->t['infomessage'] =
$session->get('infomessage', array(), 'phocaCart');
$this->t['infodata'] =
$session->get('infodata', array(), 'phocaCart');
$session->set('infoaction', 0, 'phocaCart');
$session->set('infomessage', array(),
'phocaCart');
$session->set('infodata', array(), 'phocaCart');//
order_id, order_token, payment_id, payment_method, shipping_id,
shipping_method, user_id
$media = PhocacartRenderMedia::getInstance('main');
$media->loadBase();
$media->loadSpec();
$this->_prepareDocument();
parent::display($tpl);
}
protected function _prepareDocument() {
PhocacartRenderFront::prepareDocument($this->document, $this->p,
false, false, JText::_('COM_PHOCACART_INFO'));
}
}
?>