Class JUpdaterCollection

Description

Collection Update Adapter Class

  • since: 11.1

Located in /libraries/joomla/updater/adapters/collection.php (line 21)

JObject
   |
   --JAdapterInstance
      |
      --JUpdateAdapter
         |
         --JUpdaterCollection
Variable Summary
 object $base
 array $parent
 boolean $pop_parent
 array $updates
Method Summary
 array findUpdate (array $options)
 void _endElement (object $parser, string $name)
 string _getParent ()
 object _getStackLocation ()
 void _startElement (object $parser, string $name, [array $attrs = array()])
Variables
object $base (line 29)

Root of the tree

  • since: 11.1
  • access: protected
array $parent = array(0) (line 37)

Tree of objects

  • since: 11.1
  • access: protected

Redefinition of:
JAdapterInstance::$parent
Parent
boolean $pop_parent = 0 (line 45)

Used to control if an item has a child or not

  • since: 11.1
  • access: protected
array $updates (line 57)

A list of discovered updates

  • access: protected
array $update_sites (line 50)
  • var: A list of discovered update sites
  • access: protected

Inherited Variables

Inherited from JUpdateAdapter

JUpdateAdapter::$stack
JUpdateAdapter::$updatecols
JUpdateAdapter::$updateSiteId
JUpdateAdapter::$xmlParser

Inherited from JAdapterInstance

JAdapterInstance::$db

Inherited from JObject

JObject::$_errors
Methods
findUpdate (line 216)

Finds an update

  • return: Update_sites and updates discovered
  • since: 11.1
  • access: public
array findUpdate (array $options)
  • array $options: Options to use: update_site_id: the unique ID of the update site to look at
_endElement (line 190)

Closing an XML element Note: This is a protected function though has to be exposed externally as a callback

  • since: 11.1
  • access: protected
void _endElement (object $parser, string $name)
  • object $parser: Parser object
  • string $name: Name of the element closing
_getParent (line 78)

Get the parent tag

  • return: parent
  • since: 11.1
  • access: protected
string _getParent ()
_getStackLocation (line 66)

Gets the reference to the current direct parent

  • since: 11.1
  • access: protected
object _getStackLocation ()

Redefinition of:
JUpdateAdapter::_getStackLocation()
Gets the reference to the current direct parent
_startElement (line 94)

Opening an XML element

  • since: 11.1
  • access: public
void _startElement (object $parser, string $name, [array $attrs = array()])
  • object $parser: Parser object
  • string $name: Name of element that is opened
  • array $attrs: Array of attributes for the element

Inherited Methods

Inherited From JUpdateAdapter

 JUpdateAdapter::_getLastTag()
 JUpdateAdapter::_getStackLocation()

Inherited From JAdapterInstance

 JAdapterInstance::__construct()
 JAdapterInstance::getParent()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 14:56:04 +0100 by phpDocumentor 1.4.3