Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Dropdown

Fonctions membres publiques statiques

static init ()
 
static start ()
 
static render ()
 
static edit ($id, $prefix='', $customLink='')
 
static publish ($checkboxId, $prefix='')
 
static unpublish ($checkboxId, $prefix='')
 
static featured ($checkboxId, $prefix='')
 
static unfeatured ($checkboxId, $prefix='')
 
static archive ($checkboxId, $prefix='')
 
static unarchive ($checkboxId, $prefix='')
 
static trash ($checkboxId, $prefix='')
 
static untrash ($checkboxId, $prefix='')
 
static checkin ($checkboxId, $prefix='')
 
static divider ()
 
static addCustomItem ( $label, $link='javascript:void(0)', $linkAttributes='', $className='', $ajaxLoad=false, $jsCallBackFunc=null)
 

Attributs protégés statiques

static $loaded = array()
 
static $dropDownList = null
 

Description détaillée

HTML utility class for building a dropdown menu

Depuis
3.0

Documentation des fonctions membres

◆ addCustomItem()

static addCustomItem (   $label,
  $link = 'javascript:void(0)',
  $linkAttributes = '',
  $className = '',
  $ajaxLoad = false,
  $jsCallBackFunc = null 
)
static

Append a custom item to current dropdown menu

Paramètres
string$labelThe label of item
string$linkThe link of item
string$linkAttributesCustom link attributes
string$classNameClass name of item
boolean$ajaxLoadTrue if using ajax load when item clicked
string$jsCallBackFuncJavascript function name, called when ajax load successfully
Renvoie
void
Depuis
3.0

◆ archive()

static archive (   $checkboxId,
  $prefix = '' 
)
static

Append an archive item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

◆ checkin()

static checkin (   $checkboxId,
  $prefix = '' 
)
static

Append a checkin item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

◆ divider()

static divider ( )
static

Writes a divider between dropdown items

Renvoie
void
Depuis
3.0

◆ edit()

static edit (   $id,
  $prefix = '',
  $customLink = '' 
)
static

Append an edit item to the current dropdown menu

Paramètres
integer$idRecord ID
string$prefixTask prefix
string$customLinkThe custom link if dont use default Joomla action format
Renvoie
void
Depuis
3.0

Références $id, $link, $option, $prefix, Text\_(), Route\_(), et Factory\getApplication().

◆ featured()

static featured (   $checkboxId,
  $prefix = '' 
)
static

Append a featured item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

◆ init()

static init ( )
static

Method to inject needed script

Renvoie
void
Depuis
3.0

Références HTMLHelper\_(), et Factory\getDocument().

◆ publish()

static publish (   $checkboxId,
  $prefix = '' 
)
static

Append a publish item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

Références $prefix, $task, et Text\_().

◆ render()

static render ( )
static

Method to render current dropdown menu

Renvoie
string HTML markup for the dropdown list
Depuis
3.0

Références null.

◆ start()

static start ( )
static

Method to start a new dropdown menu

Renvoie
void
Depuis
3.0

◆ trash()

static trash (   $checkboxId,
  $prefix = '' 
)
static

Append a trash item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

◆ unarchive()

static unarchive (   $checkboxId,
  $prefix = '' 
)
static

Append an unarchive item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

◆ unfeatured()

static unfeatured (   $checkboxId,
  $prefix = '' 
)
static

Append an unfeatured item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

◆ unpublish()

static unpublish (   $checkboxId,
  $prefix = '' 
)
static

Append an unpublish item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

◆ untrash()

static untrash (   $checkboxId,
  $prefix = '' 
)
static

Append an untrash item to the current dropdown menu

Paramètres
string$checkboxIdID of corresponding checkbox of the record
string$prefixThe task prefix
Renvoie
void
Depuis
3.0

Documentation des champs

◆ $dropDownList

$dropDownList = null
staticprotected

◆ $loaded

$loaded = array()
staticprotected

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