class vB_Stylevar_Mapper

Traits

Properties

$assertor
$dateline
$loaded
$mappings
$processed
$master
$custom
$result
$mapper
$preset
$delete
$styles
$product
$productlist
$masterstyleid

Methods

__sleep()

No description

__wakeup()

No description

__construct($masterstyleid = -1)

No description

addMapping($mapfrom, $mapto, $product = 'vbulletin', $delete = false)

No description

addPreset($mapto, $value, $forced = true, $verify = '')

No description

removeStylevar($stylevar)

No description

load()

No description

process()

No description

displayResults($stop = false)

No description

processResults()

No description

addStlyevar($stylevar, $style, $data, $time = 0, $user = 'SV-Mapper')

No description

deleteStylevar($stylevar)

No description

verifyUnits($unit)

No description

bool
updateInheritance(string $oldname, string $newname)

Updates any stylevars that inherit from $oldname to inherit from $newname instead

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

at line 66
__construct($masterstyleid = -1)

Parameters

$masterstyleid

at line 88
addMapping($mapfrom, $mapto, $product = 'vbulletin', $delete = false)

Parameters

$mapfrom
$mapto
$product
$delete

at line 108
addPreset($mapto, $value, $forced = true, $verify = '')

Parameters

$mapto
$value
$forced
$verify

at line 120
removeStylevar($stylevar)

Parameters

$stylevar

at line 128
load()

at line 164
process()

at line 299
displayResults($stop = false)

Parameters

$stop

at line 326
processResults()

at line 348
addStlyevar($stylevar, $style, $data, $time = 0, $user = 'SV-Mapper')

Parameters

$stylevar
$style
$data
$time
$user

at line 376
deleteStylevar($stylevar)

Parameters

$stylevar

at line 412
verifyUnits($unit)

Parameters

$unit

at line 449
bool updateInheritance(string $oldname, string $newname)

Updates any stylevars that inherit from $oldname to inherit from $newname instead

NOTE: This works mostly separate from stylevar mapping, since when you map from one stylevar to another, you're not necessary renaming it to the new one... you might be merely sourcing the value of one to populate the other. If you're actually renaming a stylevar, and the old one won't be used anymore, that's when you call this function. This should be called after doing the regular mapping.

Parameters

string $oldname Old stylevar name (stylevarid)
string $newname New stylevar name (stylevarid)

Return Value

bool True if anything was updated, false otherwise.