class ContentCategories extends JCategories


Located at : UKNOWVA_ROOT/components/com_content/helpers/category.php

Content Component Category Tree

Properties

static array $instances Array to hold the object instances from JCategories

Methods

__construct(array $options = array())

Class constructor

static Jcategories
getInstance(string $extension, array $options = array())

Returns a reference to a JCategories object

mixed
get(mixed $id = 'root', boolean $forceload = false)

Loads a specific category and all its children in a JCategoryNode object

Details

at line 25
JCategories __construct(array $options = array())

Class constructor

Parameters

array $options Array of options

Return Value

JCategories object

in JCategories at line 126
static Jcategories getInstance(string $extension, array $options = array())

Returns a reference to a JCategories object

Parameters

string $extension Name of the categories extension
array $options An array of options

Return Value

Jcategories Jcategories object

in JCategories at line 164
mixed get(mixed $id = 'root', boolean $forceload = false)

Loads a specific category and all its children in a JCategoryNode object

Parameters

mixed $id an optional id integer or equal to 'root'
boolean $forceload True to force the _load method to execute

Return Value

mixed JCategoryNode object or null if $id is not valid