class vB_Xml_Import_Channel extends vB_Xml_Import

Traits

Constants

OPTION_OVERWRITE

OPTION_IGNOREMISSINGROUTES

OPTION_IGNOREMISSINGPARENTS

OPTION_ADDWIDGETS

OPTION_OVERWRITECOLUMN

TYPE_ROUTE

TYPE_CHANNEL

TYPE_PAGE

TYPE_PAGETEMPLATE

TYPE_WIDGET

TYPE_THEME

TYPE_SCREENLAYOUT

Properties

protected vB_dB_Assertor $db from vB_Xml_Import
protected int $options from vB_Xml_Import
protected array $parsedXML from vB_Xml_Import
protected $productid from vB_Xml_Import
static protected array $importedElements from vB_Xml_Import
protected string $overwriteColumn Column to overwrite, if OPTION_OVERWRITECOLUMN is set from vB_Xml_Import
protected $referencedRoutes
protected $referencedParents
protected $contenttypes
protected $bf_moderatorpermissions
protected $bf_administratorpermissions
protected $bf_albumpermissions
protected $bf_forumpermissions
protected $bf_forumpermissions2
protected $bf_socialgrouppermissions
protected $editorGroupId
protected $authorGroupid

Methods

__sleep()

No description

__wakeup()

No description

__construct($productid = 'vbulletin', $options = 9)

No description

setOptions($options)

No description

setOverwriteColumn(string $column)

Sets the column to overwrite, if OPTION_OVERWRITECOLUMN is set

static 
setImportedId($type, $guid, $newid)

Stores an imported element with the new id

static int
getImportedId(string $type, string $guid = NULL)

Returns the id for an imported element

importFromFile(string $filepath, string $guid = false)

Imports objects from the specified filepath

importFromParsedXML(array $parsedXML)

Imports objects from parsed XML starting at the base of the relevant objects.

import()

Import objects

static 
parseFile($filepath)

No description

array
replacePhrasePlaceholdersInArray(array $array)

If an array value is of the form "phrase:" replace it with the actual phrase.

checkRoutes()

Checks if all referenced routes are already defined Also sets a class attribute to be used while importing

fixMissingChannelRoutes()

No description

checkParents()

Checks if all referenced parents are already defined or imported Also sets a class attribute to be used while importing

array
fetchEmptyPermissions()

Returns a permission record with nothing in it

updateChannelRoutes($xml = false)

No description

buildRootPerms()

No description

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

in vB_Xml_Import at line 69
__construct($productid = 'vbulletin', $options = 9)

Parameters

$productid
$options

in vB_Xml_Import at line 76
setOptions($options)

Parameters

$options

in vB_Xml_Import at line 86
setOverwriteColumn(string $column)

Sets the column to overwrite, if OPTION_OVERWRITECOLUMN is set

Parameters

string $column Column name

in vB_Xml_Import at line 137
static protected setImportedId($type, $guid, $newid)

Stores an imported element with the new id

Parameters

$type
$guid
$newid

in vB_Xml_Import at line 148
static int getImportedId(string $type, string $guid = NULL)

Returns the id for an imported element

Parameters

string $type
string $guid

Return Value

int

in vB_Xml_Import at line 173
importFromFile(string $filepath, string $guid = false)

Imports objects from the specified filepath

Parameters

string $filepath
string $guid Only import the record associated with this guid

in vB_Xml_Import at line 183
importFromParsedXML(array $parsedXML)

Imports objects from parsed XML starting at the base of the relevant objects.

Parameters

array $parsedXML

at line 146
protected import()

Import objects

in vB_Xml_Import at line 194
static parseFile($filepath)

Parameters

$filepath

in vB_Xml_Import at line 218
protected array replacePhrasePlaceholdersInArray(array $array)

If an array value is of the form "phrase:" replace it with the actual phrase.

Parameters

array $array

Return Value

array The array with phrases replaced.

at line 31
protected checkRoutes()

Checks if all referenced routes are already defined Also sets a class attribute to be used while importing

at line 60
fixMissingChannelRoutes()

at line 117
protected checkParents()

Checks if all referenced parents are already defined or imported Also sets a class attribute to be used while importing

at line 809
protected array fetchEmptyPermissions()

Returns a permission record with nothing in it

Return Value

array empty permission array

at line 825
updateChannelRoutes($xml = false)

Parameters

$xml

at line 869
protected buildRootPerms()