[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/plugins/system/legacy/ -> mainframe.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: mainframe.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla.Legacy
   5  * @subpackage    1.5
   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
   9  * to the GNU General Public License, and as distributed it includes or
  10  * is derivative of works licensed under the GNU General Public License or
  11  * other free or open source software licenses.
  12  * See COPYRIGHT.php for copyright notices and details.
  13  */
  14  
  15  // Check to ensure this file is within the rest of the framework
  16  defined('JPATH_BASE') or die();
  17  
  18  // Register legacy classes for autoloading
  19  JLoader::register('JApplication' , JPATH_LIBRARIES.DS.'joomla'.DS.'application'.DS.'application.php');
  20  
  21  /**
  22   * Legacy class, derive from {@link JApplication} instead
  23   *
  24   * @deprecated    As of version 1.5
  25   * @package    Joomla.Legacy
  26   * @subpackage    1.5
  27   */
  28  class mosMainFrame extends JApplication
  29  {
  30      /**
  31       * Class constructor
  32       * @param database A database connection object
  33       * @param string The url option [DEPRECATED]
  34       * @param string The path of the mos directory [DEPRECATED]
  35       */
  36  	function __construct( &$db, $option, $basePath=null, $client=0 )
  37      {
  38          $config = array();
  39          $config['clientId'] = $client;
  40          parent::__construct( $config );
  41      }
  42  
  43      /**
  44       * Class constructor
  45       * @param database A database connection object
  46       * @param string The url option [DEPRECATED]
  47       * @param string The path of the mos directory [DEPRECATED]
  48       */
  49  	function mosMainFrame( &$db, $option, $basePath=null, $client=0 )
  50      {
  51          $config = array();
  52          $config['clientId'] = $client;
  53          parent::__construct( $config );
  54      }
  55  
  56      /**
  57       * Initialises the user session
  58       *
  59       * Old sessions are flushed based on the configuration value for the cookie
  60       * lifetime. If an existing session, then the last access time is updated.
  61       * If a new session, a session id is generated and a record is created in
  62       * the mos_sessions table.
  63       */
  64  	function initSession( )
  65      {
  66  
  67      }
  68  
  69      /**
  70       * Gets the base path for the client
  71       * @param mixed A client identifier
  72       * @param boolean True (default) to add traling slash
  73       */
  74  	function getBasePath( $client=0, $addTrailingSlash=true )
  75      {
  76          switch ($client)
  77          {
  78              case '0':
  79              case 'site':
  80              case 'front':
  81              default:
  82                  return mosPathName( JPATH_SITE, $addTrailingSlash );
  83                  break;
  84  
  85              case '2':
  86              case 'installation':
  87                  return mosPathName( JPATH_INSTALLATION, $addTrailingSlash );
  88                  break;
  89  
  90              case '1':
  91              case 'admin':
  92              case 'administrator':
  93                  return mosPathName( JPATH_ADMINISTRATOR, $addTrailingSlash );
  94                  break;
  95  
  96          }
  97      }
  98  
  99      /**
 100      * Deprecated, use {@link JDocument::setTitle() JDocument->setTitle()} instead or override in your application class
 101      *
 102      * @since 1.5
 103      * @deprecated As of version 1.5
 104      */
 105  	function setPageTitle( $title=null )
 106      {
 107          $document=& JFactory::getDocument();
 108          $document->setTitle($title);
 109      }
 110  
 111      /**
 112      * Deprecated, use {@link JDocument::getTitle() JDocument->getTitle()} instead or override in your application class
 113      * @since 1.5
 114      * @deprecated As of version 1.5
 115      */
 116  	function getPageTitle()
 117      {
 118          $document=& JFactory::getDocument();
 119          return $document->getTitle();
 120      }
 121  }


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