Fixed format typo that remove a string

This commit is contained in:
Llewellyn van der Merwe 2017-12-15 02:26:45 +02:00
parent d3cbea5c82
commit 8ac350e62b
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
65 changed files with 374 additions and 343 deletions

View File

@ -111,11 +111,11 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](http://vdm.bz/component-builder) + *Name*: [Component Builder](http://vdm.bz/component-builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 14th December, 2017 + *Last Build*: 15th December, 2017
+ *Version*: 2.6.7 + *Version*: 2.6.7
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **178213** + *Line count*: **178243**
+ *File count*: **1145** + *File count*: **1145**
+ *Folder count*: **184** + *Folder count*: **184**

View File

@ -111,11 +111,11 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](http://vdm.bz/component-builder) + *Name*: [Component Builder](http://vdm.bz/component-builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 14th December, 2017 + *Last Build*: 15th December, 2017
+ *Version*: 2.6.7 + *Version*: 2.6.7
+ *Copyright*: Copyright (C) 2015. All Rights Reserved + *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
+ *Line count*: **178213** + *Line count*: **178243**
+ *File count*: **1145** + *File count*: **1145**
+ *Folder count*: **184** + *Folder count*: **184**

View File

@ -48,22 +48,22 @@ class ###Component###View###View### extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ###Component###Helper::getActions('###view###',$this->item); $this->canDo = ###Component###Helper::getActions('###view###',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
}###LINKEDVIEWITEMS### }###LINKEDVIEWITEMS###
// Set the toolbar // Set the toolbar

View File

@ -56,6 +56,7 @@ class ###Component###View###Views### extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ###Component###Helper::getActions('###view###');###JVIEWLISTCANDO### $this->canDo = ###Component###Helper::getActions('###view###');###JVIEWLISTCANDO###

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewAdmin_fields extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('admin_fields',$this->item); $this->canDo = ComponentbuilderHelper::getActions('admin_fields',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewAdmin_fields_conditions extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions',$this->item); $this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewAdmin_view extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('admin_view',$this->item); $this->canDo = ComponentbuilderHelper::getActions('admin_view',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewAdmin_views extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('admin_view'); $this->canDo = ComponentbuilderHelper::getActions('admin_view');
$this->canEdit = $this->canDo->get('admin_view.edit'); $this->canEdit = $this->canDo->get('admin_view.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewAdmin_views extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('admin_views'); $help_url = ComponentbuilderHelper::getHelpUrl('admin_views');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewAdmins_fields extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('admin_fields'); $this->canDo = ComponentbuilderHelper::getActions('admin_fields');
$this->canEdit = $this->canDo->get('admin_fields.edit'); $this->canEdit = $this->canDo->get('admin_fields.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewAdmins_fields extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('admins_fields'); $help_url = ComponentbuilderHelper::getHelpUrl('admins_fields');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewAdmins_fields_conditions extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions'); $this->canDo = ComponentbuilderHelper::getActions('admin_fields_conditions');
$this->canEdit = $this->canDo->get('admin_fields_conditions.edit'); $this->canEdit = $this->canDo->get('admin_fields_conditions.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewAdmins_fields_conditions extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('admins_fields_conditions'); $help_url = ComponentbuilderHelper::getHelpUrl('admins_fields_conditions');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_admin_views extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_admin_views',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_admin_views',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_config extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_config',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_config',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_custom_admin_menus extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_menus',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_menus',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_custom_admin_views extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_views',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_views',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_dashboard extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_dashboard',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_dashboard',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_files_folders extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_files_folders',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_files_folders',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_mysql_tweaks extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_mysql_tweaks',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_mysql_tweaks',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_site_views extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_site_views',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_site_views',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewComponent_updates extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_updates',$this->item); $this->canDo = ComponentbuilderHelper::getActions('component_updates',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_admin_views extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_admin_views'); $this->canDo = ComponentbuilderHelper::getActions('component_admin_views');
$this->canEdit = $this->canDo->get('component_admin_views.edit'); $this->canEdit = $this->canDo->get('component_admin_views.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_admin_views extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_admin_views'); $help_url = ComponentbuilderHelper::getHelpUrl('components_admin_views');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_config extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_config'); $this->canDo = ComponentbuilderHelper::getActions('component_config');
$this->canEdit = $this->canDo->get('component_config.edit'); $this->canEdit = $this->canDo->get('component_config.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_config extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_config'); $help_url = ComponentbuilderHelper::getHelpUrl('components_config');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_custom_admin_menus extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_menus'); $this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_menus');
$this->canEdit = $this->canDo->get('component_custom_admin_menus.edit'); $this->canEdit = $this->canDo->get('component_custom_admin_menus.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_custom_admin_menus extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_custom_admin_menus'); $help_url = ComponentbuilderHelper::getHelpUrl('components_custom_admin_menus');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_custom_admin_views extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_views'); $this->canDo = ComponentbuilderHelper::getActions('component_custom_admin_views');
$this->canEdit = $this->canDo->get('component_custom_admin_views.edit'); $this->canEdit = $this->canDo->get('component_custom_admin_views.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_custom_admin_views extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_custom_admin_views'); $help_url = ComponentbuilderHelper::getHelpUrl('components_custom_admin_views');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_dashboard extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_dashboard'); $this->canDo = ComponentbuilderHelper::getActions('component_dashboard');
$this->canEdit = $this->canDo->get('component_dashboard.edit'); $this->canEdit = $this->canDo->get('component_dashboard.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_dashboard extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_dashboard'); $help_url = ComponentbuilderHelper::getHelpUrl('components_dashboard');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_files_folders extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_files_folders'); $this->canDo = ComponentbuilderHelper::getActions('component_files_folders');
$this->canEdit = $this->canDo->get('component_files_folders.edit'); $this->canEdit = $this->canDo->get('component_files_folders.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_files_folders extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_files_folders'); $help_url = ComponentbuilderHelper::getHelpUrl('components_files_folders');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_mysql_tweaks extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_mysql_tweaks'); $this->canDo = ComponentbuilderHelper::getActions('component_mysql_tweaks');
$this->canEdit = $this->canDo->get('component_mysql_tweaks.edit'); $this->canEdit = $this->canDo->get('component_mysql_tweaks.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_mysql_tweaks extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_mysql_tweaks'); $help_url = ComponentbuilderHelper::getHelpUrl('components_mysql_tweaks');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_site_views extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_site_views'); $this->canDo = ComponentbuilderHelper::getActions('component_site_views');
$this->canEdit = $this->canDo->get('component_site_views.edit'); $this->canEdit = $this->canDo->get('component_site_views.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_site_views extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_site_views'); $help_url = ComponentbuilderHelper::getHelpUrl('components_site_views');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewComponents_updates extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('component_updates'); $this->canDo = ComponentbuilderHelper::getActions('component_updates');
$this->canEdit = $this->canDo->get('component_updates.edit'); $this->canEdit = $this->canDo->get('component_updates.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewComponents_updates extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('components_updates'); $help_url = ComponentbuilderHelper::getHelpUrl('components_updates');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewCustom_admin_view extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('custom_admin_view',$this->item); $this->canDo = ComponentbuilderHelper::getActions('custom_admin_view',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewCustom_admin_views extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('custom_admin_view'); $this->canDo = ComponentbuilderHelper::getActions('custom_admin_view');
$this->canEdit = $this->canDo->get('core.edit'); $this->canEdit = $this->canDo->get('core.edit');
@ -163,13 +164,13 @@ class ComponentbuilderViewCustom_admin_views extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('custom_admin_views'); $help_url = ComponentbuilderHelper::getHelpUrl('custom_admin_views');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewCustom_code extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('custom_code',$this->item); $this->canDo = ComponentbuilderHelper::getActions('custom_code',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewCustom_codes extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('custom_code'); $this->canDo = ComponentbuilderHelper::getActions('custom_code');
$this->canEdit = $this->canDo->get('custom_code.edit'); $this->canEdit = $this->canDo->get('custom_code.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewCustom_codes extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('custom_codes'); $help_url = ComponentbuilderHelper::getHelpUrl('custom_codes');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewDynamic_get extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('dynamic_get',$this->item); $this->canDo = ComponentbuilderHelper::getActions('dynamic_get',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewDynamic_gets extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('dynamic_get'); $this->canDo = ComponentbuilderHelper::getActions('dynamic_get');
$this->canEdit = $this->canDo->get('dynamic_get.edit'); $this->canEdit = $this->canDo->get('dynamic_get.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewDynamic_gets extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('dynamic_gets'); $help_url = ComponentbuilderHelper::getHelpUrl('dynamic_gets');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewField extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('field',$this->item); $this->canDo = ComponentbuilderHelper::getActions('field',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewFields extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('field'); $this->canDo = ComponentbuilderHelper::getActions('field');
$this->canEdit = $this->canDo->get('field.edit'); $this->canEdit = $this->canDo->get('field.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewFields extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('fields'); $help_url = ComponentbuilderHelper::getHelpUrl('fields');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewFieldtype extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('fieldtype',$this->item); $this->canDo = ComponentbuilderHelper::getActions('fieldtype',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Get Linked view data // Get Linked view data

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewFieldtypes extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('fieldtype'); $this->canDo = ComponentbuilderHelper::getActions('fieldtype');
$this->canEdit = $this->canDo->get('fieldtype.edit'); $this->canEdit = $this->canDo->get('fieldtype.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewFieldtypes extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('fieldtypes'); $help_url = ComponentbuilderHelper::getHelpUrl('fieldtypes');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewFtp extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('ftp',$this->item); $this->canDo = ComponentbuilderHelper::getActions('ftp',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Get Linked view data // Get Linked view data

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewFtps extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('ftp'); $this->canDo = ComponentbuilderHelper::getActions('ftp');
$this->canEdit = $this->canDo->get('ftp.edit'); $this->canEdit = $this->canDo->get('ftp.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewFtps extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('ftps'); $help_url = ComponentbuilderHelper::getHelpUrl('ftps');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewHelp_document extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('help_document',$this->item); $this->canDo = ComponentbuilderHelper::getActions('help_document',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewHelp_documents extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('help_document'); $this->canDo = ComponentbuilderHelper::getActions('help_document');
$this->canEdit = $this->canDo->get('help_document.edit'); $this->canEdit = $this->canDo->get('help_document.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewHelp_documents extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('help_documents'); $help_url = ComponentbuilderHelper::getHelpUrl('help_documents');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewJoomla_component extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('joomla_component',$this->item); $this->canDo = ComponentbuilderHelper::getActions('joomla_component',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Get Linked view data // Get Linked view data

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('joomla_component'); $this->canDo = ComponentbuilderHelper::getActions('joomla_component');
$this->canEdit = $this->canDo->get('joomla_component.edit'); $this->canEdit = $this->canDo->get('joomla_component.edit');
@ -173,13 +174,13 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('joomla_components'); $help_url = ComponentbuilderHelper::getHelpUrl('joomla_components');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewLanguage extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('language',$this->item); $this->canDo = ComponentbuilderHelper::getActions('language',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewLanguage_translation extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('language_translation',$this->item); $this->canDo = ComponentbuilderHelper::getActions('language_translation',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewLanguage_translations extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('language_translation'); $this->canDo = ComponentbuilderHelper::getActions('language_translation');
$this->canEdit = $this->canDo->get('language_translation.edit'); $this->canEdit = $this->canDo->get('language_translation.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewLanguage_translations extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('language_translations'); $help_url = ComponentbuilderHelper::getHelpUrl('language_translations');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewLanguages extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('language'); $this->canDo = ComponentbuilderHelper::getActions('language');
$this->canEdit = $this->canDo->get('language.edit'); $this->canEdit = $this->canDo->get('language.edit');
@ -158,13 +159,13 @@ class ComponentbuilderViewLanguages extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('languages'); $help_url = ComponentbuilderHelper::getHelpUrl('languages');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewLayout extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('layout',$this->item); $this->canDo = ComponentbuilderHelper::getActions('layout',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewLayouts extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('layout'); $this->canDo = ComponentbuilderHelper::getActions('layout');
$this->canEdit = $this->canDo->get('core.edit'); $this->canEdit = $this->canDo->get('core.edit');
@ -163,13 +164,13 @@ class ComponentbuilderViewLayouts extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('layouts'); $help_url = ComponentbuilderHelper::getHelpUrl('layouts');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewLibraries extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('library'); $this->canDo = ComponentbuilderHelper::getActions('library');
$this->canEdit = $this->canDo->get('library.edit'); $this->canEdit = $this->canDo->get('library.edit');
@ -153,13 +154,13 @@ class ComponentbuilderViewLibraries extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('libraries'); $help_url = ComponentbuilderHelper::getHelpUrl('libraries');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewLibraries_config extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('library_config'); $this->canDo = ComponentbuilderHelper::getActions('library_config');
$this->canEdit = $this->canDo->get('library_config.edit'); $this->canEdit = $this->canDo->get('library_config.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewLibraries_config extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('libraries_config'); $help_url = ComponentbuilderHelper::getHelpUrl('libraries_config');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewLibraries_files_folders_urls extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('library_files_folders_urls'); $this->canDo = ComponentbuilderHelper::getActions('library_files_folders_urls');
$this->canEdit = $this->canDo->get('library_files_folders_urls.edit'); $this->canEdit = $this->canDo->get('library_files_folders_urls.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewLibraries_files_folders_urls extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('libraries_files_folders_urls'); $help_url = ComponentbuilderHelper::getHelpUrl('libraries_files_folders_urls');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewLibrary extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('library',$this->item); $this->canDo = ComponentbuilderHelper::getActions('library',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewLibrary_config extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('library_config',$this->item); $this->canDo = ComponentbuilderHelper::getActions('library_config',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewLibrary_files_folders_urls extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('library_files_folders_urls',$this->item); $this->canDo = ComponentbuilderHelper::getActions('library_files_folders_urls',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewSite_view extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('site_view',$this->item); $this->canDo = ComponentbuilderHelper::getActions('site_view',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewSite_views extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('site_view'); $this->canDo = ComponentbuilderHelper::getActions('site_view');
$this->canEdit = $this->canDo->get('core.edit'); $this->canEdit = $this->canDo->get('core.edit');
@ -163,13 +164,13 @@ class ComponentbuilderViewSite_views extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('site_views'); $help_url = ComponentbuilderHelper::getHelpUrl('site_views');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewSnippet extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('snippet',$this->item); $this->canDo = ComponentbuilderHelper::getActions('snippet',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewSnippet_type extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('snippet_type',$this->item); $this->canDo = ComponentbuilderHelper::getActions('snippet_type',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewSnippet_types extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('snippet_type'); $this->canDo = ComponentbuilderHelper::getActions('snippet_type');
$this->canEdit = $this->canDo->get('snippet_type.edit'); $this->canEdit = $this->canDo->get('snippet_type.edit');
@ -148,13 +149,13 @@ class ComponentbuilderViewSnippet_types extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('snippet_types'); $help_url = ComponentbuilderHelper::getHelpUrl('snippet_types');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewSnippets extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('snippet'); $this->canDo = ComponentbuilderHelper::getActions('snippet');
$this->canEdit = $this->canDo->get('core.edit'); $this->canEdit = $this->canDo->get('core.edit');
@ -168,13 +169,13 @@ class ComponentbuilderViewSnippets extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('snippets'); $help_url = ComponentbuilderHelper::getHelpUrl('snippets');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -45,22 +45,22 @@ class ComponentbuilderViewTemplate extends JViewLegacy
$this->item = $this->get('Item'); $this->item = $this->get('Item');
$this->script = $this->get('Script'); $this->script = $this->get('Script');
$this->state = $this->get('State'); $this->state = $this->get('State');
// get action permissions // get action permissions
$this->canDo = ComponentbuilderHelper::getActions('template',$this->item); $this->canDo = ComponentbuilderHelper::getActions('template',$this->item);
// get input // get input
$jinput = JFactory::getApplication()->input; $jinput = JFactory::getApplication()->input;
$this->ref = $jinput->get('ref', 0, 'word'); $this->ref = $jinput->get('ref', 0, 'word');
$this->refid = $jinput->get('refid', 0, 'int'); $this->refid = $jinput->get('refid', 0, 'int');
$this->referral = ''; $this->referral = '';
if ($this->refid) if ($this->refid)
{ {
// return to the item that refered to this item // return to the item that refered to this item
$this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid; $this->referral = '&ref='.(string)$this->ref.'&refid='.(int)$this->refid;
} }
elseif($this->ref) elseif($this->ref)
{ {
// return to the list view that refered to this item // return to the list view that refered to this item
$this->referral = '&ref='.(string)$this->ref; $this->referral = '&ref='.(string)$this->ref;
} }
// Set the toolbar // Set the toolbar

View File

@ -53,6 +53,7 @@ class ComponentbuilderViewTemplates extends JViewLegacy
$this->user = JFactory::getUser(); $this->user = JFactory::getUser();
$this->listOrder = $this->escape($this->state->get('list.ordering')); $this->listOrder = $this->escape($this->state->get('list.ordering'));
$this->listDirn = $this->escape($this->state->get('list.direction')); $this->listDirn = $this->escape($this->state->get('list.direction'));
$this->saveOrder = $this->listOrder == 'ordering';
// get global action permissions // get global action permissions
$this->canDo = ComponentbuilderHelper::getActions('template'); $this->canDo = ComponentbuilderHelper::getActions('template');
$this->canEdit = $this->canDo->get('core.edit'); $this->canEdit = $this->canDo->get('core.edit');
@ -163,13 +164,13 @@ class ComponentbuilderViewTemplates extends JViewLegacy
$help_url = ComponentbuilderHelper::getHelpUrl('templates'); $help_url = ComponentbuilderHelper::getHelpUrl('templates');
if (ComponentbuilderHelper::checkString($help_url)) if (ComponentbuilderHelper::checkString($help_url))
{ {
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url); JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
} }
// add the options comp button // add the options comp button
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
{ {
JToolBarHelper::preferences('com_componentbuilder'); JToolBarHelper::preferences('com_componentbuilder');
} }
if ($this->canState) if ($this->canState)

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade"> <extension type="component" version="3.2" method="upgrade">
<name>COM_COMPONENTBUILDER</name> <name>COM_COMPONENTBUILDER</name>
<creationDate>14th December, 2017</creationDate> <creationDate>15th December, 2017</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail> <authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>http://vdm.bz/component-builder</authorUrl> <authorUrl>http://vdm.bz/component-builder</authorUrl>