/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { /** @var RedcoreModelConfig $model */ $model = $this->getModel('Config'); $this->form = $model->getForm(); $this->component = $model->getComponent(); $this->return = JFactory::getApplication()->input->get('return'); parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $model = $this->getModel(); $this->items = $model->getItems(); $this->state = $model->getState(); $this->pagination = $model->getPagination(); $this->activeFilters = $model->getActiveFilters(); $this->filterForm = $model->getForm(); parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $this->form = $this->get('Form'); $this->item = $this->get('Item'); // Check if option is enabled if (RBootstrap::getConfig('enable_oauth2_server', 0) == 0) { JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_REDCORE_OAUTH_CLIENTS_PLUGIN_LABEL_WARNING', '<a href="index.php?option=com_plugins&view=plugins&filter_search=redcore">' . JText::_('COM_REDCORE_CONFIGURE') . '</a>'), 'error'); } parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $model = $this->getModel(); $model->getState(); $model->setState('payment_name', JFactory::getApplication()->input->getString('payment_name', '')); $model->setState('process_params', '1'); $this->form = $model->getForm(); $this->item = $model->getItem(); $this->paymentName = $model->paymentName; parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $model = $this->getModel('webservice'); $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->fields = $model->fields; $this->resources = $model->resources; $this->formData = $model->formData; // Check if option is enabled if (RBootstrap::getConfig('enable_webservices', 0) == 0) { JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_REDCORE_WEBSERVICES_PLUGIN_LABEL_WARNING', '<a href="index.php?option=com_plugins&view=plugins&filter_search=redcore">' . JText::_('COM_REDCORE_CONFIGURE') . '</a>'), 'error'); } parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $model = $this->getModel(); $this->activeFilters = $model->getActiveFilters(); $this->state = $model->getState(); $this->filterForm = $model->getForm(); $this->pagination = $model->getPagination(); $this->items = $model->getItems(); $this->xmlFiles = $model->getXmlFiles(); $this->xmlFilesAvailable = $model->xmlFilesAvailable; $this->return = base64_encode('index.php?option=com_redcore&view=webservices'); // Check if option is enabled if (RBootstrap::getConfig('enable_webservices', 0) == 0) { JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_REDCORE_WEBSERVICES_PLUGIN_LABEL_WARNING', '<a href="index.php?option=com_plugins&view=plugins&filter_search=redcore">' . JText::_('COM_REDCORE_CONFIGURE') . '</a>'), 'error'); } parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { /** @var RedcoreModelConfig $model */ $model = $this->getModel('Config'); $option = JFactory::getApplication()->input->getString('component', 'com_redcore'); $lang = JFactory::getLanguage(); // Load component language files $lang->load($option, JPATH_ADMINISTRATOR, 'en-GB', false, false) || $lang->load($option, JPATH_ADMINISTRATOR . '/components/' . $option, 'en-GB', false, false); $this->form = $model->getForm(); $this->component = $model->getComponent($option); $this->return = JFactory::getApplication()->input->get('return', '', 'Base64'); $this->componentTitle = RText::getTranslationIfExists($this->component->xml->name, '', ''); $this->contentElements = $model->loadContentElements($option); $this->missingContentElements = $model->loadMissingContentElements($option, $this->contentElements); RLayoutHelper::$defaultBasePath = JPATH_ADMINISTRATOR . '/components/' . $option . '/layouts'; $extensionXml = RComponentHelper::getComponentManifestFile($option); if (isset($extensionXml->redcore)) { $attributes = $extensionXml->redcore->attributes(); if (!empty($attributes['defaultFramework'])) { RHtmlMedia::setFramework((string) $attributes['defaultFramework']); } } parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $this->components = RedcoreHelpersView::getExtensionsRedcore(); parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $this->form = $this->get('Form'); $this->item = $this->get('Item'); parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $model = $this->getModel(); $app = JFactory::getApplication(); $this->contentElementName = RedcoreHelpersTranslation::getCurrentContentElement(); $this->componentName = $app->input->get->get('component', $model->getState('filter.component', '')); $this->activeFilters = $model->getActiveFilters(); $this->state = $model->getState(); $this->filterForm = $model->getForm(); $this->pagination = $model->getPagination(); if (!empty($this->contentElementName)) { $this->translationTable = RedcoreHelpersTranslation::getTranslationTable(); $this->contentElement = RTranslationHelper::getContentElement($this->translationTable->option, $this->translationTable->xml); $this->items = $model->getItems(); $this->filterForm->removeField('component', 'filter'); } else { /** @var RedcoreModelConfig $modelConfig */ $modelConfig = RModelAdmin::getAdminInstance('Config', array('ignore_request' => true), 'com_redcore'); if (!empty($this->componentName)) { $this->component = $modelConfig->getComponent($this->componentName); } $this->contentElements = $modelConfig->loadContentElements($this->componentName); $this->missingContentElements = $modelConfig->loadMissingContentElements($this->componentName, $this->contentElements); $this->return = base64_encode('index.php?option=com_redcore&view=translations&contentelement=&component=' . $this->componentName); $layout = 'manage'; $this->setLayout($layout); $app->input->set('layout', $layout); $this->filterForm->removeField('language', 'filter'); $this->filterForm->removeField('search_translations', 'filter'); $this->filterForm->removeField('translations_limit', 'list'); $this->filterForm->removeField('contentelement', 'filter'); } // Check if option is enabled if (RBootstrap::getConfig('enable_translations', 0) == 0) { JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_REDCORE_CONFIG_TRANSLATIONS_PLUGIN_LABEL_WARNING', '<a href="index.php?option=com_plugins&view=plugins&filter_search=redcore">' . JText::_('COM_REDCORE_CONFIGURE') . '</a>'), 'error'); } parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $this->form = $this->get('Form'); $this->translationTable = RedcoreHelpersTranslation::getTranslationTable(); $this->contentElement = RTranslationHelper::getContentElement($this->translationTable->option, $this->translationTable->xml); $this->item = $this->get('Item'); $editor = JFactory::getConfig()->get('editor'); $this->editor = JEditor::getInstance($editor); $this->columns = array(); $this->noTranslationColumns = array(); $tableColumns = (array) $this->translationTable->columns; $this->fieldsXml = $this->contentElement->getTranslateFields(); foreach ($this->fieldsXml as $field) { foreach ($tableColumns as $column) { if ($column == (string) $field['name']) { $attributes = current($field->attributes()); $attributes['titleLabel'] = (string) $field; $this->columns[$column] = $attributes; break; } } if ((string) $field['translate'] == '0' && (string) $field['type'] != 'referenceid') { $attributes = current($field->attributes()); $attributes['titleLabel'] = (string) $field; $this->noTranslationColumns[(string) $field['name']] = $attributes; } } // Check if option is enabled if (RBootstrap::getConfig('enable_translations', 0) == 0) { JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_REDCORE_CONFIG_TRANSLATIONS_PLUGIN_LABEL_WARNING', '<a href="index.php?option=com_plugins&view=plugins&filter_search=redcore">' . JText::_('COM_REDCORE_CONFIGURE') . '</a>'), 'error'); } parent::display($tpl); }
/** * Display method * * @param string $tpl The template name * * @return void */ public function display($tpl = null) { $model = $this->getModel(); $this->state = $model->getState(); $this->activeFilters = $model->getActiveFilters(); $this->filterForm = $model->getForm(); $filters = array(); $filters['status'] = RApiPaymentStatus::getStatusCompleted(); if ($filter = $this->state->get('filter.payment_name')) { $filters['payment_name'] = $filter; } if ($filter = $this->state->get('filter.extension_name')) { $filters['extension_name'] = $filter; } if ($startDate = $this->state->get('filter.start_date')) { $filters['start_date'] = $startDate; } if ($endDate = $this->state->get('filter.end_date')) { $filters['end_date'] = $endDate; } $this->viewType = $this->state->get('filter.dashboard_view_type'); $this->chartType = $this->state->get('filter.chart_type'); if (empty($this->viewType)) { $this->viewType = RBootstrap::getConfig('payment_dashboard_view_type', 'payment_name'); $this->state->set('filter.dashboard_view_type', $this->viewType); } if (empty($this->chartType)) { $this->chartType = RBootstrap::getConfig('payment_chart_type', 'Line'); $this->state->set('filter.chart_type', $this->chartType); } if ($this->viewType == 'status') { unset($filters['status']); } $this->paymentData['chart'] = RApiPaymentHelper::getChartData($filters, 7, $this->viewType); $filters['start_date'] = date('Y-01-01', strtotime('today -1 year')); $filters['end_date'] = date('Y-m-d', strtotime('today')); $filters['status'] = RApiPaymentStatus::getStatusCompleted(); $this->paymentData['overall'] = RApiPaymentHelper::getChartData($filters, 7, 'all'); $this->chartData = RApiPaymentHelper::prepareChartData($this->paymentData['chart'], $this->chartType); parent::display($tpl); }