Source for file joomlaupdate.php

Documentation is available at joomlaupdate.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_joomlaupdate
  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.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Joomla! update helper.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_joomlaupdate
  17.  * @since       2.5.4
  18.  */
  19. {
  20.     /**
  21.      * Gets a list of the actions that can be performed.
  22.      *
  23.      * @return  JObject 
  24.      *
  25.      * @since    2.5.4
  26.      */
  27.     public static function getActions()
  28.     {
  29.         $user    JFactory::getUser();
  30.         $result    new JObject;
  31.  
  32.         $assetName 'com_joomlaupdate';
  33.  
  34.         $actions JAccess::getActions($assetName);
  35.  
  36.         foreach ($actions as $action)
  37.         {
  38.             $result->set($action->name,    $user->authorise($action->name$assetName));
  39.         }
  40.  
  41.         return $result;
  42.     }
  43. }

Documentation generated on Tue, 19 Nov 2013 15:06:14 +0100 by phpDocumentor 1.4.3