[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/modules/update/ -> update.fetch.inc (summary)

(no description)

File Size: 273 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 includes/install.inc

Defines 1 class

update_xml_parser:: (4 methods):
  parse()
  start()
  end()
  data()

Defines 4 functions

  update_manual_status()
  _update_refresh()
  _update_build_fetch_url()
  _update_get_fetch_url_base()
  _update_cron_notify()

Class: update_xml_parser  - X-Ref

XML Parser object to read Drupal's release history info files.
This uses PHP4's lame XML parsing, but it works.

parse($data)   X-Ref
Parse an array of XML data files.


start($parser, $name, $attr)   X-Ref
No description

end($parser, $name)   X-Ref
No description

data($parser, $data)   X-Ref
No description

Functions
Functions that are not part of a class:

update_manual_status()   X-Ref
Callback to manually check the update status without cron.


_update_refresh()   X-Ref
Fetch project info via XML from a central server.


_update_build_fetch_url($project, $site_key = '')   X-Ref
Generates the URL to fetch information about project updates.

This figures out the right URL to use, based on the project's .info file
and the global defaults. Appends optional query arguments when the site is
configured to report usage stats.

param: $project
param: $site_key

_update_get_fetch_url_base($project)   X-Ref
Return the base of the URL to fetch available update data for a project.

param: $project
return:

_update_cron_notify()   X-Ref
Perform any notifications that should be done once cron fetches new data.

This method checks the status of the site using the new data and depending
on the configuration of the site, notifies administrators via email if there
are new releases or missing security updates.




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7