Class JUpdaterCollection

Description

Collection Update Adapter Class

  • since: 11.1

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

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 30)

Root of the tree

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

Tree of objects

  • since: 11.1
  • access: protected

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

Used to control if an item has a child or not

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

A list of discovered updates

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

Inherited Variables

Inherited from JUpdateAdapter

JUpdateAdapter::$xml_parser
JUpdateAdapter::$_stack
JUpdateAdapter::$_updatecols
JUpdateAdapter::$_update_site_id

Inherited from JAdapterInstance

JAdapterInstance::$db

Inherited from JObject

JObject::$_errors
Methods
findUpdate (line 204)

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 178)

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 80)

Get the parent tag

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

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 96)

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()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:53:09 -0500 by phpDocumentor 1.4.4