File: /home/iestorre/www/administrator/components/com_quicklogout/helpers/quicklogout.php
<?php
/**
* @version 1.7.0
* @package com_quicklogout
* @copyright Copyright (C) 2011. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Created by com_combuilder - http://www.notwebdesign.com
*/
// No direct access
defined('_JEXEC') or die;
/**
* Quicklogout helper.
*/
class QuicklogoutHelper
{
/**
* Configure the Linkbar.
*/
public static function addSubmenu($vName = '')
{
JSubMenuHelper::addEntry(
JText::_('COM_QUICKLOGOUT_TITLE_ITEMS'),
'index.php?option=com_quicklogout&view=items',
$vName == 'items'
);
}
/**
* Gets a list of the actions that can be performed.
*
* @return JObject
* @since 1.6
*/
public static function getActions()
{
$user = JFactory::getUser();
$result = new JObject;
$assetName = 'com_quicklogout';
$actions = array(
'core.admin', 'core.manage', 'core.create', 'core.edit', 'core.edit.own', 'core.edit.state', 'core.delete'
);
foreach ($actions as $action) {
$result->set($action, $user->authorise($action, $assetName));
}
return $result;
}
}