Source for file finder.php

Documentation is available at finder.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_finder
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Helper class for Finder.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_finder
  17.  * @since       2.5
  18.  */
  19. {
  20.     /**
  21.      * @var        string    The extension name.
  22.      * @since    2.5
  23.      */
  24.     public static $extension 'com_finder';
  25.  
  26.     /**
  27.      * Configure the Linkbar.
  28.      *
  29.      * @param   string  $vName  The name of the active view.
  30.      *
  31.      * @return  void 
  32.      *
  33.      * @since   2.5
  34.      */
  35.     public static function addSubmenu($vName)
  36.     {
  37.         JHtmlSidebar::addEntry(
  38.             JText::_('COM_FINDER_SUBMENU_INDEX'),
  39.             'index.php?option=com_finder&view=index',
  40.             $vName == 'index'
  41.         );
  42.         JHtmlSidebar::addEntry(
  43.             JText::_('COM_FINDER_SUBMENU_MAPS'),
  44.             'index.php?option=com_finder&view=maps',
  45.             $vName == 'maps'
  46.         );
  47.         JHtmlSidebar::addEntry(
  48.             JText::_('COM_FINDER_SUBMENU_FILTERS'),
  49.             'index.php?option=com_finder&view=filters',
  50.             $vName == 'filters'
  51.         );
  52.     }
  53.  
  54.     /**
  55.      * Gets a list of the actions that can be performed.
  56.      *
  57.      * @return  JObject  A JObject containing the allowed actions.
  58.      *
  59.      * @since   2.5
  60.      */
  61.     public static function getActions()
  62.     {
  63.         $user JFactory::getUser();
  64.         $result new JObject;
  65.         $assetName 'com_finder';
  66.  
  67.         $actions JAccess::getActions($assetName'component');
  68.  
  69.         foreach ($actions as $action)
  70.         {
  71.             $result->set($action->name$user->authorise($action->name$assetName));
  72.         }
  73.  
  74.         return $result;
  75.     }
  76. }

Documentation generated on Tue, 19 Nov 2013 15:03:23 +0100 by phpDocumentor 1.4.3