Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Categories
+ Graphe d'héritage de Categories:

Fonctions membres publiques

 __construct ($options)
 
 get ($id='root', $forceload=false)
 
 getExtension ()
 

Fonctions membres publiques statiques

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

Attributs publics statiques

static $instances = array()
 

Attributs protégés

 $_nodes
 
 $_checkedCategories
 
 $_extension = null
 
 $_table = null
 
 $_field = null
 
 $_key = null
 
 $_statefield = null
 
 $_options = null
 

Description détaillée

Categories Class.

Depuis
1.6

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $options)

Class constructor

Paramètres
array$optionsArray of options
Depuis
1.6

Références $options, Factory\getLanguage(), et Multilanguage\isEnabled().

Documentation des fonctions membres

◆ get()

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

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

Paramètres
mixed$idan optional id integer or equal to 'root'
boolean$forceloadTrue to force the _load method to execute
Renvoie
CategoryNode|null|boolean CategoryNode object or null if $id is not valid
Depuis
1.6

Implémente CategoryInterface.

Références $id, et elseif.

◆ getExtension()

getExtension ( )

Returns the extension of the category.

Renvoie
string The extension
Depuis
3.9.0

◆ getInstance()

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

Returns a reference to a Categories object

Paramètres
string$extensionName of the categories extension
array$optionsAn array of options
Renvoie
Categories|boolean Categories object on success, boolean false if an object does not exist
Depuis
1.6

Références $component, $extension, $hash, $options, $parts, $path, $section, JPATH_SITE, et JLoader\register().

Documentation des champs

◆ $_checkedCategories

$_checkedCategories
protected

◆ $_extension

$_extension = null
protected

◆ $_field

$_field = null
protected

◆ $_key

$_key = null
protected

◆ $_nodes

$_nodes
protected

◆ $_options

$_options = null
protected

◆ $_statefield

$_statefield = null
protected

◆ $_table

$_table = null
protected

◆ $instances

$instances = array()
static

La documentation de cette classe a été générée à partir du fichier suivant :