joomla_test/libraries/joomla/updater/updateadapter.php

75 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2020-01-02 22:20:31 +07:00
<?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];
}
}