* @git Joomla Component Builder * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access to this file defined('_JEXEC') or die('Restricted access'); ?> ###BOM### // No direct access to this file defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED### ###CUSTOM_ADMIN_VIEW_HTML_HEADER######CUSTOM_ADMIN_GET_MODULE_JIMPORT### /** * ###Component### Html View class for the ###SView### */ class ###Component###View###SView### extends HtmlView { // Overwriting JView display method function display($tpl = null) { // get component params $this->params = ComponentHelper::getParams('com_###component###'); // get the application $this->app = Factory::getApplication(); // get the user object $this->user = Factory::getUser(); // get global action permissions $this->canDo = ###Component###Helper::getActions('###sview###');###CUSTOM_ADMIN_DIPLAY_METHOD### // Display the template parent::display($tpl); }###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS### /** * Prepares the document */ protected function setDocument() {###CUSTOM_ADMIN_LIBRARIES_LOADER######CUSTOM_ADMIN_DOCUMENT_METADATA######CUSTOM_ADMIN_UIKIT_LOADER######CUSTOM_ADMIN_GOOGLECHART_LOADER######CUSTOM_ADMIN_FOOTABLE_LOADER######CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP### // add the document default css file Html::_('stylesheet', 'administrator/components/com_###component###/assets/css/###sview###.css', ['version' => 'auto']);###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS######CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS### } /** * Setting the toolbar */ protected function addToolBar() { ###CUSTOM_ADMIN_ADDTOOLBAR### }###CUSTOM_ADMIN_GET_MODULE### /** * Sanitises a value to plain text for output in a view script. * * @param mixed $var The output to escape. * * @return mixed The value as plain text. */ public function sanitize($var) { // strip every tag, leaving only the text. return Super___1f28cb53_60d9_4db1_b517_3c7dc6b429ef___Power::sanitize($var, $this->_charset); } /** * Get the Document (helper method toward Joomla 4 and 5) */ public function getDocument() { $this->document ??= JFactory::getDocument(); return $this->document; } } ?>