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

Fonctions membres publiques

 __construct ($config=array())
 
 batch ($model=null)
 

Fonctions membres protégées

 allowAdd ($data=array())
 
 allowEdit ($data=array(), $key='id')
 
 getRedirectToItemAppend ($recordId=null, $urlVar='id')
 
 getRedirectToListAppend ()
 
 postSaveHook (JModelLegacy $model, $validData=array())
 

Attributs protégés

 $text_prefix = 'COM_FIELDS_FIELD'
 

Attributs privés

 $internalContext
 
 $component
 

Description détaillée

The Field controller

Depuis
3.7.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Class constructor.

Paramètres
array$configA named array of configuration variables.
Depuis
3.7.0

Références $config, $parts, FieldsHelper\extract(), et null.

Documentation des fonctions membres

◆ allowAdd()

allowAdd (   $data = array())
protected

Method override to check if you can add a new record.

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

◆ 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
1.6

Références $data, $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
3.7.0

◆ 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.7.0

◆ getRedirectToListAppend()

getRedirectToListAppend ( )
protected

Gets the URL arguments to append to a list redirect.

Renvoie
string The arguments to append to the redirect URL.
Depuis
3.7.0

◆ 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
3.7.0

Références $item, et Registry\loadArray().

Documentation des champs

◆ $component

$component
private

◆ $internalContext

$internalContext
private

◆ $text_prefix

$text_prefix = 'COM_FIELDS_FIELD'
protected

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