public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $params = $this->state->get('params'); /** @var $params Joomla\Registry\Registry */ $this->params = $params; // Load all currencies jimport("virtualcurrency.currencies"); $this->currencies = new VirtualCurrencyCurrencies(JFactory::getDbo()); $this->currencies->load(); // Get real currenices jimport("virtualcurrency.realcurrency"); $this->realCurrency = new VirtualCurrencyRealCurrency(JFactory::getDbo()); $this->realCurrency->load($this->params->get("payments_currency_id")); // Add submenu VirtualCurrencyHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { $this->state = $this->get('State'); $this->form = $this->get('Form'); // Add submenu VirtualCurrencyHelper::addSubmenu("realcurrencies"); // Prepare actions $this->addToolbar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); // Add submenu VirtualCurrencyHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); // Prepare filters $this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listDirn = $this->escape($this->state->get('list.direction')); $this->saveOrder = strcmp($this->listOrder, 'a.ordering') != 0 ? false : true; // Add submenu VirtualCurrencyHelper::addSubmenu($this->getName()); // Prepare actions $this->addToolbar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->version = new VirtualCurrencyVersion(); // Load ITPrism library version jimport("itprism.version"); if (!class_exists("ITPrismVersion")) { $this->itprismVersion = JText::_("COM_VIRTUALCURRENCY_ITPRISM_LIBRARY_DOWNLOAD"); } else { $itprismVersion = new ITPrismVersion(); $this->itprismVersion = $itprismVersion->getShortVersion(); } // Add submenu VirtualCurrencyHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }