\JUpdate
Update class.
Synopsis
class JUpdate
extends JObject
{
- // members
- protected $name;
- protected $description;
- protected $element;
- protected $type;
- protected $version;
- protected $infourl;
- protected $client;
- protected $group;
- protected $downloads;
- protected $tags;
- protected $maintainer;
- protected $maintainerurl;
- protected $category;
- protected $relationships;
- protected $targetplatform;
- protected $extra_query;
- protected $xmlParser;
- protected $stack;
- protected $stateStore;
- protected stdClass $currentUpdate;
- protected stdClass $latest;
- // Inherited members from JObject
- protected $_errors;
- // methods
- protected _getStackLocation()
- protected string _getLastTag()
- public void _startElement()
- public void _endElement()
- public void _characterData()
- public boolean loadFromXML()
- // 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 |
---|---|
342 | remove code: if(!isset($this->$tag->_data)) $this->$tag->_data = ''; |
343 | remove code: $this->$tag->_data .= $data; |
368 | Add a 'mark bad' setting here somehow |
Members
protected
- $_errors
—
array
An array of error messages or Exception objects. - $category
—
string
Update manifest <category> element - $client
—
string
Update manifest <client> element - $currentUpdate
—
stdClass
Object containing the current update data - $description
—
string
Update manifest <description> element - $downloads
—
string
Update manifest <downloads> element - $element
—
string
Update manifest <element> element - $extra_query
—
string
Extra query for download URLs - $group
—
string
Update manifest <group> element - $infourl
—
string
Update manifest <infourl> element - $latest
—
stdClass
Object containing the latest update data - $maintainer
—
string
Update manifest <maintainer> element - $maintainerurl
—
string
Update manifest <maintainerurl> element - $name
—
string
Update manifest <name> element - $relationships
—
string
Update manifest <relationships> element - $stack
—
array
Element call stack - $stateStore
—
array
Unused state array - $targetplatform
—
string
Update manifest <targetplatform> element - $type
—
string
Update manifest <type> element - $version
—
string
Update manifest <version> element - $xmlParser
—
resource
Resource handle for the XML Parser
Methods
protected
- _getLastTag() — Get the last position in stack count
- _getStackLocation() — Gets the reference to the current direct parent
public
- _characterData() — Character Parser Function
- _endElement() — Callback for closing the element
- _startElement() — XML Start Element callback
- loadFromXML() — Loads an XML file from a URL.
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.