Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ItemController
+ Graphe d'héritage de ItemController:

Fonctions membres publiques

 add ()
 
 cancel ($key=null)
 
 edit ($key=null, $urlVar=null)
 
 setType ()
 
- Fonctions membres publiques hérités de FormController
 __construct ( $config=array(), MVCFactoryInterface $factory=null, ?CMSApplication $app=null, ?Input $input=null, FormFactoryInterface $formFactory=null)
 
 add ()
 
 batch ($model)
 
 cancel ($key=null)
 
 edit ($key=null, $urlVar=null)
 
 getModel ($name='', $prefix='', $config=array('ignore_request'=> true))
 
 save ($key=null, $urlVar=null)
 
 editAssociations ()
 
- Fonctions membres publiques hérités de BaseController
 __construct ($config=array(), MVCFactoryInterface $factory=null, ?CMSApplication $app=null, ?Input $input=null)
 
 addViewPath ($path)
 
 execute ($task)
 
 getModel ($name='', $prefix='', $config=array())
 
 getName ()
 
 getTask ()
 
 getTasks ()
 
 getView ($name='', $type='', $prefix='', $config=array())
 
 redirect ()
 
 registerDefaultTask ($method)
 
 registerTask ($task, $method)
 
 unregisterTask ($task)
 
 setMessage ($text, $type='message')
 
 checkToken ($method='post', $redirect=true)
 
 setRedirect ($url, $msg=null, $type=null)
 
- Fonctions membres publiques hérités de DispatcherAwareInterface
 setDispatcher (DispatcherInterface $dispatcher)
 
- Fonctions membres publiques hérités de FormFactoryAwareInterface
 setFormFactory (FormFactoryInterface $factory)
 

Fonctions membres protégées

 allowAdd ($data=array())
 
 allowEdit ($data=array(), $key='id')
 
 getMenuTypeId ($menutype)
 
- Fonctions membres protégées hérités de FormController
 allowAdd ($data=[])
 
 allowEdit ($data=[], $key='id')
 
 allowSave ($data, $key='id')
 
 getRedirectToItemAppend ($recordId=null, $urlVar='id')
 
 getRedirectToListAppend ()
 
 postSaveHook (BaseDatabaseModel $model, $validData=array())
 
- Fonctions membres protégées hérités de BaseController
 addPath ($type, $path)
 
 checkEditId ($context, $id)
 
 createModel ($name, $prefix='', $config=array())
 
 createView ($name, $prefix='', $type='', $config=array())
 
 holdEditId ($context, $id)
 
 releaseEditId ($context, $id)
 
 setPath ($type, $path)
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de BaseController
static addModelPath ($path, $prefix='')
 
static createFileName ($type, $parts=array())
 
static getInstance ($prefix, $config=array())
 
- Attributs protégés hérités de FormController
 $context
 
 $option
 
 $view_item
 
 $view_list
 
 $text_prefix
 
- Attributs protégés hérités de BaseController
 $basePath
 
 $default_view
 
 $doTask
 
 $message
 
 $messageType
 
 $methods
 
 $name
 
 $model_prefix
 
 $paths
 
 $redirect
 
 $task
 
 $taskMap
 
 $input
 
 $factory
 
 $app
 
- Attributs protégés statiques hérités de BaseController
static $instance
 
static $views
 

Description détaillée

The Menu ItemModel 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, otherwise false.
Depuis
1.6

Références $context, $result, 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, $model, et $user.

◆ 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 $context, $result, Route\_(), Joomla\Application\checkToken(), false, et null.

◆ 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 $result, 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

Références $menutype, et $model.

◆ setType()

setType ( )

Sets the type of the menu item currently being edited.

Renvoie
void
Depuis
1.6

Références $app, $component, $data, $recordId, $title, $type, Route\_(), Uri\buildQuery(), Joomla\Application\checkToken(), elseif, ComponentHelper\getComponent(), InputFilter\getInstance(), et null.


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