[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_installer/ -> helper.php (source)

   1  <?php
   2  /**
   3   * @version        $Id: helper.php 14401 2010-01-26 14:10:00Z louis $
   4   * @package        Joomla
   5   * @subpackage    Menus
   6   * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7   * @license        GNU/GPL, see LICENSE.php
   8   * Joomla! is free software. This version may have been modified pursuant to the
   9   * GNU General Public License, and as distributed it includes or is derivative
  10   * of works licensed under the GNU General Public License or other free or open
  11   * source software licenses. See COPYRIGHT.php for copyright notices and
  12   * details.
  13   */
  14  
  15  /**
  16   * Extension Manager Helper
  17   *
  18   * @static
  19   * @package        Joomla
  20   * @subpackage    Installer
  21   * @since        1.5
  22   */
  23  class InstallerHelper
  24  {
  25      /**
  26       * Get HTML string for writable state of a folder
  27       *
  28       * @param string $folder
  29       * @return string
  30       */
  31  	function writable( $folder )
  32      {
  33          return is_writable( JPATH_ROOT.DS.$folder )
  34              ? '<strong><span class="writable">'.JText::_( 'Writable' ).'</span></strong>'
  35              : '<strong><span class="unwritable">'.JText::_( 'Unwritable' ).'</span></strong>';
  36      }
  37  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1