Joomla CMS  3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
Référence de la classe MenusControllerItem
+ Graphe d'héritage de MenusControllerItem:

Fonctions membres publiques

 add ()
 
 batch ($model=null)
 
 cancel ($key=null)
 
 edit ($key=null, $urlVar=null)
 
 save ($key=null, $urlVar=null)
 
 setType ()
 

Fonctions membres protégées

 allowAdd ($data=array())
 
 allowEdit ($data=array(), $key='id')
 
 getMenuTypeId ($menutype)
 
 getRedirectToItemAppend ($recordId=null, $urlVar='id')
 

Description détaillée

The Menu Item Controller

Depuis
1.6

Documentation des fonctions membres

◆ add()

add ( )

Method to add a new menu item.

Renvoie
mixed True if the record can be added, a JError object if not.
Depuis
1.6

Références $app, $context, et null.

◆ allowAdd()

allowAdd (   $data = array())
protected

Method to check if you can add a new record.

Extended classes can override this if necessary.

Paramètres
array$dataAn array of input data.
Renvoie
boolean
Depuis
3.6

Références $data, $menuType, et $user.

◆ allowEdit()

allowEdit (   $data = array(),
  $key = 'id' 
)
protected

Method to check if you edit a record.

Extended classes can override this if necessary.

Paramètres
array$dataAn array of input data.
string$keyThe name of the key for the primary key; default is id.
Renvoie
boolean
Depuis
3.6

Références $data, $item, $key, et $user.

◆ batch()

batch (   $model = null)

Method to run batch operations.

Paramètres
object$modelThe model.
Renvoie
boolean True if successful, false otherwise and internal error is set.
Depuis
1.6

◆ cancel()

cancel (   $key = null)

Method to cancel an edit.

Paramètres
string$keyThe name of the primary key of the URL variable.
Renvoie
boolean True if access level checks pass, false otherwise.
Depuis
1.6

Références $app, $context, false, null, et option.

◆ edit()

edit (   $key = null,
  $urlVar = null 
)

Method to edit an existing record.

Paramètres
string$keyThe name of the primary key of the URL variable.
string$urlVarThe name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
Renvoie
boolean True if access level check and checkout passes, false otherwise.
Depuis
1.6

Références $app, edit, et null.

◆ getMenuTypeId()

getMenuTypeId (   $menutype)
protected

Loads the menutype ID by a given menutype string

Paramètres
string$menutypeThe given menutype
Renvoie
integer
Depuis
3.6

◆ getRedirectToItemAppend()

getRedirectToItemAppend (   $recordId = null,
  $urlVar = 'id' 
)
protected

Gets the URL arguments to append to an item redirect.

Paramètres
integer$recordIdThe primary key id for the item.
string$urlVarThe name of the URL variable for the id.
Renvoie
string The arguments to append to the redirect URL.
Depuis
3.0.1

Références $app, $clientId, $item, et $menuType.

◆ save()

save (   $key = null,
  $urlVar = null 
)

Method to save a record.

Paramètres
string$keyThe name of the primary key of the URL variable.
string$urlVarThe name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
Renvoie
boolean True if successful, false otherwise.
Depuis
1.6

Références $app, $context, $data, $editUrl, $field, $form, $i, $key, $n, $task, false, null, option, et JError\raiseError().

◆ setType()

setType ( )

Sets the type of the menu item currently being edited.

Renvoie
void
Depuis
1.6

Références $app, $component, $data, $title, $type, elseif, null, et option.


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