[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/plugins/system/ -> mtupgrade.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: mtupgrade.php 18130 2010-07-14 11:21:35Z louis $
   4  * @package        Joomla
   5  * @copyright    Copyright (C) 2005 - 2009 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  jimport('joomla.plugin.plugin');
  18  
  19  class plgSystemMTUpgrade extends JPlugin
  20  {
  21      /**
  22       * Constructor
  23       *
  24       * For php4 compatability we must not use the __constructor as a constructor for plugins
  25       * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
  26       * This causes problems with cross-referencing necessary for the observer design pattern.
  27       *
  28       * @access    protected
  29       * @param    object    $subject The object to observe
  30       * @param     array   $config  An array that holds the plugin configuration
  31       * @since    1.0
  32       */
  33  	function plgSystemMTUpgrade(& $subject, $config)
  34      {
  35          parent::__construct($subject, $config);
  36      }
  37  
  38      /**
  39       * onAfterInitialise handler
  40       *
  41       * Adds the mtupgrade folder to the list of directories to search for JHTML helpers.
  42       *
  43       * @access    public
  44       * @return null
  45       */
  46  	function onAfterInitialise()
  47      {
  48          JHTML::addIncludePath(JPATH_PLUGINS.DS.'system'.DS.'mtupgrade');
  49      }
  50  }


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