view.html.php
1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
// namespace administrator\components\com_jmap\views\htaccess;
/**
* @package JMAP::HTACCESS::::administrator::components::com_jmap
* @subpackage views
* @subpackage htaccess
* @author Joomla! Extensions Store
* @copyright (C) 2015 - Joomla! Extensions Store
* @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
*/
defined ( '_JEXEC' ) or die ( 'Restricted access' );
/**
* Htaccess editor view
*
* @package JMAP::HTACCESS::administrator::components::com_jmap
* @subpackage views
* @subpackage htaccess
* @since 3.0
*/
class JMapViewHtaccess extends JMapView {
/**
* Edit entity view
*
* @access public
* @param Object& $row the item to edit
* @return void
*/
public function editEntity(&$row) {
// Load JS Client App dependencies
$doc = JFactory::getDocument();
$this->loadJQuery($doc);
$this->loadBootstrap($doc);
$translations = array ( 'COM_JMAP_HTACCESS_PATH',
'COM_JMAP_HTACCESS_OLD_PATH',
'COM_JMAP_HTACCESS_DIRECTIVE_ADDED',
'COM_JMAP_HTACCESS_REQUIRED' );
$this->injectJsTranslations($translations, $doc);
// Load specific JS App
$doc->addStylesheet ( JUri::root ( true ) . '/administrator/components/com_jmap/css/htaccess.css' );
$doc->addScript ( JUri::root ( true ) . '/administrator/components/com_jmap/js/htaccess.js' );
$this->option = $this->option;
$this->htaccessVersion = $this->getModel ()->getState ( 'htaccess_version' );
$this->record = $row;
parent::display ( 'edit' );
}
}