[ Index ]

PHP Cross Reference of Joomla 1.5.25

title

Body

[close]

/libraries/joomla/ -> import.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: import.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   6  * @license        GNU/GPL, see LICENSE.php
   7  * Joomla! is free software. This version may have been modified pursuant
   8  * to the GNU General Public License, and as distributed it includes or
   9  * is derivative of works licensed under the GNU General Public License or
  10  * other free or open source software licenses.
  11  * See COPYRIGHT.php for copyright notices and details.
  12  */
  13  
  14  // no direct access
  15  defined( '_JEXEC' ) or die( 'Restricted access' );
  16  
  17  /**
  18   * Load the loader class
  19   */
  20  if (! class_exists('JLoader')) {
  21      require_once( JPATH_LIBRARIES.DS.'loader.php');
  22  }
  23  
  24  /**
  25   * Joomla! library imports
  26   */
  27  
  28  //Base classes
  29  JLoader::import( 'joomla.base.object'             );
  30  
  31  //Environment classes
  32  JLoader::import( 'joomla.environment.request'   );
  33  JRequest::clean();
  34  
  35  JLoader::import( 'joomla.environment.response'  );
  36  
  37  //Factory class and methods
  38  JLoader::import( 'joomla.factory'                 );
  39  JLoader::import( 'joomla.version'                 );
  40  if (!defined('JVERSION')) {
  41      $version = new JVersion();
  42      define('JVERSION', $version->getShortVersion());
  43  }
  44  
  45  //Error
  46  JLoader::import( 'joomla.error.error'             );
  47  JLoader::import( 'joomla.error.exception'         );
  48  
  49  //Utilities
  50  JLoader::import( 'joomla.utilities.arrayhelper' );
  51  
  52  //Filters
  53  JLoader::import( 'joomla.filter.filterinput'    );
  54  JLoader::import( 'joomla.filter.filteroutput'    );
  55  
  56  //Register class that don't follow one file per class naming conventions
  57  JLoader::register('JText' , dirname(__FILE__).DS.'methods.php');
  58  JLoader::register('JRoute', dirname(__FILE__).DS.'methods.php');


Generated: Mon Nov 14 16:47:20 2011 Cross-referenced by PHPXref 0.7.1