\JUpdaterCollection
Collection Update Adapter Class
Synopsis
class JUpdaterCollection
extends JUpdateAdapter
{
- // members
- protected $base;
- protected $parent;
- protected $pop_parent;
- protected $update_sites;
- protected $updates;
- // Inherited members from JUpdateAdapter
- protected $xmlParser;
- protected $stack;
- protected $updateSiteId;
- protected $updatecols;
- // Inherited members from JAdapterInstance
- protected JAdapter $parent;
- protected JDatabaseDriver $db;
- // Inherited members from JObject
- protected $_errors;
- // methods
- protected _getStackLocation()
- protected string _getParent()
- public void _startElement()
- protected void _endElement()
- public array findUpdate()
- // Inherited methods from JUpdateAdapter
- protected _getStackLocation()
- protected _getLastTag()
- // Inherited methods from JAdapterInstance
- public void __construct()
- public JAdapter getParent()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
299 | Decrement the bad counter if non-zero |
Members
protected
- $_errors
—
array
An array of error messages or Exception objects. - $base
—
Root of the tree - $db
—
JDatabaseDriver
Database - $parent
—
array
Tree of objects - $parent
—
JAdapter
Parent - $pop_parent
—
boolean
Used to control if an item has a child or not - $stack
—
array
Element call stack - $updateSiteId
—
string
ID of update site - $update_sites — array
- $updatecols
—
array
Columns in the extensions table to be updated - $updates
—
array
A list of discovered updates - $xmlParser
—
resource
Resource handle for the XML Parser
Methods
protected
- _endElement() — Closing an XML element Note: This is a protected function though has to be exposed externally as a callback
- _getParent() — Get the parent tag
- _getStackLocation() — Gets the reference to the current direct parent
public
- _startElement() — Opening an XML element
- findUpdate() — Finds an update
Inherited from JUpdateAdapter
protected
- _getLastTag() — Gets the reference to the last tag
- _getStackLocation() — Gets the reference to the current direct parent
Inherited from JAdapterInstance
public
- getParent() — Retrieves the parent object
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.