class vB_Library_Product extends vB_Library

vB_Library_Product

Traits

Properties

static protected $instance from vB_Library

Methods

__sleep()

No description

__wakeup()

No description

__construct()

No description

static vB_PageCache
instance($class)

Returns singleton instance of self.

static 
getLibraryClassNameInternal($controller)

No description

static 
getContentInstance($contenttypeid)

No description

static 
clearCache()

No description

array
loadProductXmlListParsed(string $type = '', boolean $typekey = false)

Returns parsed xml for package xml files

array
loadProductXmlList(string $type = '', boolean $typekey = false)

Loads an array of all package xml files (optionally of one type).

getPackages($packagesDir, $folders = array())

gets the list of packages (folder names).

getFullProducts()

No description

getProducts()

No description

buildProductDatastore()

Saves the list of currently installed products into the datastore.

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

in vB_Library at line 25
protected __construct()

in vB_Library at line 35
static vB_PageCache instance($class)

Returns singleton instance of self.

Parameters

$class

Return Value

vB_PageCache
  • Reference to singleton instance of the cache handler

in vB_Library at line 52
static protected getLibraryClassNameInternal($controller)

Parameters

$controller

in vB_Library at line 91
static getContentInstance($contenttypeid)

Parameters

$contenttypeid

in vB_Library at line 99
static clearCache()

at line 35
array loadProductXmlListParsed(string $type = '', boolean $typekey = false)

Returns parsed xml for package xml files

Returns the file list from loadProductXmlList but includes the parsed array from the xml contents instead of the filenames

Parameters

string $type
boolean $typekey

Return Value

array

See also

vB_Library_Product::loadProductXmlList

at line 64
array loadProductXmlList(string $type = '', boolean $typekey = false)

Loads an array of all package xml files (optionally of one type).

Load from core\packages\packagename\xml as well as core\includes\xml\ (for the vbulletin package) Files will be interpreted as: {type}{subtype}.xml (or {type}{subtype}_someotherstring.xml

Parameters

string $type -- the file prefix for the xml file to load. If the type of the file does not match the passed type it will be ignored.
boolean $typekey -- whether to return the values by subtype. If false then a single array of all files will be returned. Otherwise the return will be an array of arrays by subtype. If there is no subtype (for example sometype.xml) then "none" will be used.

Return Value

array either an array of file names or an array of the form $subtype => array(files)

at line 217
getPackages($packagesDir, $folders = array())

gets the list of packages (folder names).

Parameters

$packagesDir
$folders

at line 250
getFullProducts()

at line 276
getProducts()

at line 290
buildProductDatastore()

Saves the list of currently installed products into the datastore.