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

Fonctions membres publiques

 __construct ($config=array())
 
 getForm ($data=array(), $loadData=true)
 
 getItem ($pk=null)
 
 getTable ($type='Extension', $prefix='JTable', $config=array())
 
 save ($data)
 
 getHelp ()
 

Fonctions membres protégées

 loadFormData ()
 
 populateState ()
 
 preprocessForm (JForm $form, $data, $group='content')
 
 getReorderConditions ($table)
 
 cleanCache ($group=null, $clientId=0)
 

Attributs protégés

 $helpKey = 'JHELP_EXTENSIONS_PLUGIN_MANAGER_EDIT'
 
 $helpURL
 
 $_cache
 

Description détaillée

Plugin model.

Depuis
1.6

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.

Références $config.

Documentation des fonctions membres

◆ cleanCache()

cleanCache (   $group = null,
  $clientId = 0 
)
protected

Custom clean cache method, plugins are cached in 2 places for different clients.

Paramètres
string$groupCache group name.
integer$clientIdApplication client id.
Renvoie
void
Depuis
1.6

◆ getForm()

getForm (   $data = array(),
  $loadData = true 
)

Method to get the record form.

Paramètres
array$dataData for the form.
boolean$loadDataTrue if the form is to load its own data (default case), false if not.
Renvoie
JForm A JForm object on success, false on failure.
Depuis
1.6

Références $data, $folder, $form, $item, et JPATH_PLUGINS.

◆ getHelp()

getHelp ( )

Get the necessary data to load an item help screen.

Renvoie
object An object with key, url, and local properties for loading the item help screen.
Depuis
1.6

◆ getItem()

getItem (   $pk = null)

Method to get a single record.

Paramètres
integer$pkThe id of the primary key.
Renvoie
mixed Object on success, false on failure.

Références $path, $return, JPATH_PLUGINS, et null.

◆ getReorderConditions()

getReorderConditions (   $table)
protected

A protected method to get a set of ordering conditions.

Paramètres
object$tableA record object.
Renvoie
array An array of conditions to add to add to ordering queries.
Depuis
1.6

Références $condition.

◆ getTable()

getTable (   $type = 'Extension',
  $prefix = 'JTable',
  $config = array() 
)

Returns a reference to the Table object, always creating it.

Paramètres
string$typeThe table type to instantiate.
string$prefixA prefix for the table class name. Optional.
array$configConfiguration array for model. Optional.
Renvoie
JTable A database object

Références $config, $prefix, et $type.

◆ loadFormData()

loadFormData ( )
protected

Method to get the data that should be injected in the form.

Renvoie
mixed The data for the form.
Depuis
1.6

Références $data.

◆ populateState()

populateState ( )
protected

Auto-populate the model state.

Note. Calling getState in this method will result in recursion.

Renvoie
void
Depuis
1.6

Références $app.

◆ preprocessForm()

preprocessForm ( JForm  $form,
  $data,
  $group = 'content' 
)
protected

Preprocess the form.

Paramètres
JForm$formA form object.
mixed$dataThe data expected for the form.
string$groupCache group name.
Renvoie
mixed True if successful.
Exceptions
Exceptionif there is an error in the form event.
Depuis
1.6

Références $app, $data, $db, $folder, $form, $lang, $query, jimport(), JPATH_ADMINISTRATOR, JPATH_PLUGINS, et null.

◆ save()

save (   $data)

Override method to save the form data.

Paramètres
array$dataThe form data.
Renvoie
boolean True on success.
Depuis
1.6

Références $data.

Documentation des champs

◆ $_cache

$_cache
protected

◆ $helpKey

$helpKey = 'JHELP_EXTENSIONS_PLUGIN_MANAGER_EDIT'
protected

◆ $helpURL

$helpURL
protected

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