You've already forked joomla_test
first commit
This commit is contained in:
74
libraries/joomla/updater/updateadapter.php
Normal file
74
libraries/joomla/updater/updateadapter.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Platform
|
||||
* @subpackage Updater
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE
|
||||
*/
|
||||
|
||||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
jimport('joomla.base.adapterinstance');
|
||||
|
||||
/**
|
||||
* UpdateAdapter class.
|
||||
*
|
||||
* @package Joomla.Platform
|
||||
* @subpackage Updater
|
||||
* @since 11.1
|
||||
*/
|
||||
class JUpdateAdapter extends JAdapterInstance
|
||||
{
|
||||
/**
|
||||
* @var resource
|
||||
* @since 12.1
|
||||
*/
|
||||
protected $xmlParser;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
* @since 12.1
|
||||
*/
|
||||
protected $stack = array('base');
|
||||
|
||||
/**
|
||||
* ID of update site
|
||||
*
|
||||
* @var string
|
||||
* @since 12.1
|
||||
*/
|
||||
protected $updateSiteId = 0;
|
||||
|
||||
/**
|
||||
* Columns in the extensions table to be updated
|
||||
*
|
||||
* @var array
|
||||
* @since 12.1
|
||||
*/
|
||||
protected $updatecols = array('NAME', 'ELEMENT', 'TYPE', 'FOLDER', 'CLIENT', 'VERSION', 'DESCRIPTION', 'INFOURL');
|
||||
|
||||
/**
|
||||
* Gets the reference to the current direct parent
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 11.1
|
||||
*/
|
||||
protected function _getStackLocation()
|
||||
{
|
||||
return implode('->', $this->stack);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the reference to the last tag
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 11.1
|
||||
*/
|
||||
protected function _getLastTag()
|
||||
{
|
||||
return $this->stack[count($this->stack) - 1];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user