/sources/upgrade.php

Description
Functions
check_alien (line 820)

Check for alien files.

  • return: HTML list of alien files
string check_alien (array $files, SHORT_TEXT $dir, [SHORT_TEXT $rela = ''])
  • array $files: List of verbatim files
  • SHORT_TEXT $dir: The directory we are scanning relative to
  • SHORT_TEXT $rela: The directory (relative) we are scanning
check_excess_perms (line 683)

Find any excess permissions

  • return: Messages
string check_excess_perms (array $array, [string $rel = ''])
  • array $array: Permissions that DO need to be set
  • string $rel: Where we are searching under
check_outdated (line 720)

Check for out-dated files.

  • return: Tuple of various kinds of outdated/missing files
array check_outdated (SHORT_TEXT $dir, SHORT_TEXT $rela, array &$master_data)
  • SHORT_TEXT $dir: The directory we are scanning relative to
  • SHORT_TEXT $rela: The directory (relative) we are scanning
  • array &$master_data: Unserialised data/files.dat
check_perms (line 495)

Do permission checking

  • return: Output messages
string check_perms ()
clear_caches_1 (line 452)

Clear many caches.

void clear_caches_1 ()
clear_caches_2 (line 465)

Clear more caches. This is intentionally done after db upgrading.

void clear_caches_2 ()
fix_perms (line 569)

Do permission setting

  • return: Output messages
string fix_perms ()
fu_link (line 339)

Generate a form-based link to relay POST information to a URL.

  • return: The form-based link
string fu_link (string $url, string $text)
  • string $url: The URL (something like 'upgrader.php?type=ocf')
  • string $text: The URL caption text
fu_rename_zone (line 979)

Rename a zone in the database and move any custom pages in it.

void fu_rename_zone (ID_TEXT $zone, ID_TEXT $new_zone, [boolean $dont_bother_with_main_row = false])
  • ID_TEXT $zone: The old name of the zone
  • ID_TEXT $new_zone: The new name of the zone
  • boolean $dont_bother_with_main_row: Whether to assume the main zone row has already been renamed as part of a wider editing operation
get_chmod_array_2 (line 477)

Find extra directories to chmod

  • return: Extra directories to chmod
array get_chmod_array_2 ()
move_modules (line 648)

Tell the user about any modules that need moving again (because the ocp ones haven't moved).

  • return: HTML list of moved files
string move_modules ()
ocf_upgrade (line 1055)

Upgrade OCF if appropriate.

  • return: Whether anything was done
boolean ocf_upgrade ()
post_fields_relay (line 322)

Get hidden form fields for relaying POST information.

  • return: The hidden form fields for relaying POST information.
string post_fields_relay ()
upgrade_modules (line 1001)

Upgrade all modules.

  • return: List of upgraded/installed modules/blocks
string upgrade_modules ()
upgrade_script (line 19)

The upgrader.php script handler.

void upgrade_script ()
up_do_footer (line 435)

Output the upgrader page footer.

void up_do_footer ()
up_do_header (line 416)

Output the upgrader page header.

void up_do_header ()
up_do_login (line 350)

Output a login page.

void up_do_login ([?string $message = NULL])
  • ?string $message: Error message (NULL: none)
version_specific (line 911)

Version specific upgrading. These are things that are relatively major structural changes and therefore will get done outside the module upgrade system.

  • return: Whether anything was done
boolean version_specific ()
_integrity_scan (line 885)

Move/delete certain selected things, in follow up to an integrity scan.

void _integrity_scan ()

Documentation generated on Thu, 07 Aug 2008 14:09:50 +0100 by phpDocumentor 1.4.1