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

Fonctions membres publiques

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

Fonctions membres protégées

 allowSave ($data, $key='id')
 
 allowEdit ($data=array(), $key='id')
 
 postSaveHook (JModelLegacy $model, $validData=array())
 

Description détaillée

Module controller class.

Depuis
1.6

Documentation des fonctions membres

◆ add()

add ( )

Override parent add method.

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

Références $app, $params, null, option, et JError\raiseWarning().

◆ allowEdit()

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

Method override to check if you can edit an existing record.

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

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

◆ allowSave()

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

Override parent allowSave method.

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.

◆ batch()

batch (   $model = null)

Method to run batch operations.

Paramètres
string$modelThe model
Renvoie
boolean True on success.
Depuis
1.7

◆ cancel()

cancel (   $key = null)

Override parent cancel method to reset the add module state.

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, et null.

Référencé par ConfigControllerModulesCancel\execute().

◆ orderPosition()

orderPosition ( )

Method to get the other modules in the same position

Renvoie
string The data for the Ajax request.
Depuis
3.6.3

Références $app, $clientId, $db, $html, $i, $jinput, $n, $position, $query, $title, ENT_QUOTES, htmlspecialchars, JError\raiseWarning(), et title.

◆ postSaveHook()

postSaveHook ( JModelLegacy  $model,
  $validData = array() 
)
protected

Function that allows child controller access to model data after the data has been saved.

Paramètres
JModelLegacy$modelThe data model object.
array$validDataThe validated data.
Renvoie
void
Depuis
1.6

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

◆ 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
Renvoie
boolean True if successful, false otherwise.

Références $data, $item, $key, getDocument, et JPATH_ADMINISTRATOR.


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