class vB_Upgrade_Product

Fetch upgrade lib based on PHP environment

Properties

protected vB_Registry $registry The vBulletin registry object
protected vB_Database $db The object that will be used to execute queries
protected array $vbphrase vbphrase array
protected vB_XML_Parser $xmlobj XML Object
Array $productinfo Product info
protected Array $productobj Product Object
protected Array $rebuild Rebuild directives
string $installed_version Installed Version
protected boolean $active Active
protected $outputtype

Methods

__construct($registry, $vbphrase, $allow_overwrite, $outputtype = 'ajax')

Constructor.

parse(string $xml)

Parse XML

import_dependencies($dependencylist = null)

Import System Dependencies

mixed
verify_install(string $productid)

Verify that product can be installed

install()

Execute install code for product

post_install()

Everything that comes after the install - no reason to break this up into chunks at present

disable($productid = null)

Disable a product, not delete

Details

at line 106
__construct($registry, $vbphrase, $allow_overwrite, $outputtype = 'ajax')

Constructor.

Parameters

$registry
$vbphrase
$allow_overwrite
$outputtype

at line 133
parse(string $xml)

Parse XML

Parameters

string $xml location of XML

at line 201
import_dependencies($dependencylist = null)

Import System Dependencies

Parameters

$dependencylist

at line 479
mixed verify_install(string $productid)

Verify that product can be installed

Parameters

string $productid XML file to parse

Return Value

mixed true on success, error message on failure

at line 511
install()

Execute install code for product

at line 550
post_install()

Everything that comes after the install - no reason to break this up into chunks at present

at line 1184
disable($productid = null)

Disable a product, not delete

Parameters

$productid