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 MenuItem
+ Graphe d'héritage de MenuItem:

Fonctions membres publiques

 __construct ($data=array())
 
 __get ($name)
 
 __set ($name, $value)
 
 __isset ($name)
 
 getParams ()
 
 setParams ($params)
 
 get ($property, $default=null)
 
 set ($property, $value=null)
 

Champs de données

 $id
 
 $menutype
 
 $title
 
 $alias
 
 $note
 
 $route
 
 $link
 
 $type
 
 $level
 
 $language
 
 $browserNav
 
 $access
 
 $home
 
 $img
 
 $template_style_id
 
 $component_id
 
 $parent_id
 
 $component
 
 $tree = array()
 
 $query = array()
 

Attributs protégés

 $params
 

Description détaillée

Object representing a menu item

Depuis
3.7.0
Note
This class will no longer extend stdClass in Joomla 4

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $data = array())

Class constructor

Paramètres
array$dataThe menu item data to load
Depuis
3.7.0

Références $data, $key, et $value.

Documentation des fonctions membres

◆ __get()

__get (   $name)

Method to get certain otherwise inaccessible properties from the form field object.

Paramètres
string$nameThe property name for which to get the value.
Renvoie
mixed The property value or null.
Depuis
3.7.0
Obsolète:
4.0 Access the item parameters through the getParams() method

Références $name.

◆ __isset()

__isset (   $name)

Method check if a certain otherwise inaccessible properties of the form field object is set.

Paramètres
string$nameThe property name to check.
Renvoie
boolean
Depuis
3.7.1
Obsolète:
4.0 Deprecated without replacement

Références $name, et null.

◆ __set()

__set (   $name,
  $value 
)

Method to set certain otherwise inaccessible properties of the form field object.

Paramètres
string$nameThe property name for which to set the value.
mixed$valueThe value of the property.
Renvoie
void
Depuis
3.7.0
Obsolète:
4.0 Set the item parameters through the setParams() method

Références $name, et $value.

◆ get()

get (   $property,
  $default = null 
)

Returns a property of the object or the default value if the property is not set.

Paramètres
string$propertyThe name of the property.
mixed$defaultThe default value.
Renvoie
mixed The value of the property.
Depuis
3.7.0
Obsolète:
4.0

Références $default.

◆ getParams()

getParams ( )

Returns the menu item parameters

Renvoie
Registry
Depuis
3.7.0

Références $params.

◆ set()

set (   $property,
  $value = null 
)

Modifies a property of the object, creating it if it does not already exist.

Paramètres
string$propertyThe name of the property.
mixed$valueThe value of the property to set.
Renvoie
mixed Previous value of the property.
Depuis
3.7.0
Obsolète:
4.0

Références $value, et null.

◆ setParams()

setParams (   $params)

Sets the menu item parameters

Paramètres
Registry | string$paramsThe data to be stored as the parameters
Renvoie
void
Depuis
3.7.0

Références $params.

Documentation des champs

◆ $access

$access

◆ $alias

$alias

◆ $browserNav

$browserNav

◆ $component

$component

◆ $component_id

$component_id

◆ $home

$home

◆ $id

$id

◆ $img

$img

◆ $language

◆ $level

$level

◆ $link

$link

◆ $menutype

$menutype

◆ $note

$note

◆ $params

$params
protected

◆ $parent_id

$parent_id

◆ $query

$query = array()

◆ $route

$route

◆ $template_style_id

$template_style_id

◆ $title

◆ $tree

$tree = array()

◆ $type

$type

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