| Current Path : /home/annegardxb/www/so-assurances/administrator/components/com_sitemap/helpers/ |
| Current File : /home/annegardxb/www/so-assurances/administrator/components/com_sitemap/helpers/helper.php |
<?php
/**
* Qlue Sitemap
*
* @author Jon Boutell
* @package QMap
* @license GNU/GPL
* @version 1.0
*
* This component gathers information from various Joomla Components and
* compiles them into a sitemap, supporting both an HTML view and an XML
* format for search engines.
*
*/
defined('_JEXEC') or die('Restricted Access');
JLoader::import('joomla.base.object');
class SitemapHelper {
public static function getActions() {
$user = JFactory::getUser();
$result = new JObject();
$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, 'com_sitemap'));
}
return $result;
}
}
?>