- md5
- 43fc21d783b8192c8556f7921a2e20fe
- sha1
- 82501a064996732812fcd88edb615ef97169c2f5
- sha256
- 405be524f57e72684e52e21a0ac5da8ee92fde67d91dd998d05fc306c143939a
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
<?php
/**
* @version $Id: languages.php 21343 2011-05-12 10:56:24Z infograf768 $
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
/**
* Languages component helper.
*
* @package Joomla.Administrator
* @subpackage com_languages
* @since 1.6
*/
class LanguagesHelper
{
/**
* Configure the Linkbar.
*
* @param string The name of the active view.
*/
public static function addSubmenu($vName)
{
JSubMenuHelper::addEntry(
JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_SITE'),
'index.php?option=com_languages&view=installed&client=0',
$vName == 'installed'
);
JSubMenuHelper::addEntry(
JText::_('COM_LANGUAGES_SUBMENU_INSTALLED_ADMINISTRATOR'),
'index.php?option=com_languages&view=installed&client=1',
$vName == 'installed'
);
JSubMenuHelper::addEntry(
JText::_('COM_LANGUAGES_SUBMENU_CONTENT'),
'index.php?option=com_languages&view=languages',
$vName == 'languages'
);
}
/**
* Gets a list of the actions that can be performed.
*
* @return JObject
*/
public static function getActions()
{
$user = JFactory::getUser();
$result = new JObject;
$assetName = 'com_languages';
$actions = array(
'core.admin', 'core.manage', 'core.create', 'core.edit', 'core.edit.state', 'core.delete'
);
foreach ($actions as $action) {
$result->set($action, $user->authorise($action, $assetName));
}
return $result;
}
}
The same content is in 6 releases, Joomla 1.7.0 to 1.7.5. See them all, or every version of this file.