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

Fonctions membres publiques

 delete ()
 
- 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

 allowSave ($data, $key='id')
 
 allowEdit ($data=array(), $key='id')
 
- 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)
 

Attributs protégés

 $text_prefix = 'COM_USERS_LEVEL'
 
- 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
 

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 statiques hérités de BaseController
static $instance
 
static $views
 

Description détaillée

User view level controller class.

Depuis
1.6

Documentation des fonctions membres

◆ allowEdit()

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

Overrides JControllerForm::allowEdit

Checks that non-Super Admins are not editing Super Admins.

Paramètres
array$dataAn array of input data.
string$keyThe name of the key for the primary key.
Renvoie
boolean
Depuis
3.8.8

Références $data, $key, Text\_(), Route\_(), et Access\checkGroup().

◆ allowSave()

allowSave (   $data,
  $key = 'id' 
)
protected

Method to check if you can save a new or existing record.

Overrides Joomla::allowSave to check the core.admin permission.

Paramètres
array$dataAn array of input data.
string$keyThe name of the key for the primary key.
Renvoie
boolean
Depuis
1.6

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

◆ delete()

delete ( )

Removes an item.

Overrides Joomla::delete to check the core.admin permission.

Renvoie
void
Depuis
1.6

Références $model, Text\_(), Joomla\Application\checkToken(), elseif, et Text\plural().

Documentation des champs

◆ $text_prefix

$text_prefix = 'COM_USERS_LEVEL'
protected

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