Major code formate to try and set a standared. Added four new fields for JavaScript files

This commit is contained in:
2017-12-15 01:10:47 +02:00
parent c9cad158e6
commit d3cbea5c82
172 changed files with 14538 additions and 14358 deletions

View File

@@ -48,7 +48,7 @@ class ###Component###View###View### extends JViewLegacy
$this->item = $this->get('Item');
$this->script = $this->get('Script');
$this->state = $this->get('State');
// get action permissions
// get action permissions
$this->canDo = ###Component###Helper::getActions('###view###',$this->item);
// get input
$jinput = JFactory::getApplication()->input;
@@ -56,15 +56,15 @@ class ###Component###View###View### extends JViewLegacy
$this->refid = $jinput->get('refid', 0, 'int');
$this->referral = '';
if ($this->refid)
{
// return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
}
elseif($this->ref)
{
// return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref;
}###LINKEDVIEWITEMS###
{
// return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
}
elseif($this->ref)
{
// return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref;
}###LINKEDVIEWITEMS###
// Set the toolbar
$this->addToolBar();
@@ -95,7 +95,7 @@ class ###Component###View###View### extends JViewLegacy
$this->toolbar = JToolbar::getInstance();
}
/**
/**
* Escapes a value for output in a view script.
*
* @param mixed $var The output to escape.
@@ -109,7 +109,7 @@ class ###Component###View###View### extends JViewLegacy
// use the helper htmlEscape method instead and shorten the string
return ###Component###Helper::htmlEscape($var, $this->_charset, true, 30);
}
// use the helper htmlEscape method instead.
// use the helper htmlEscape method instead.
return ###Component###Helper::htmlEscape($var, $this->_charset);
}