◆ __construct()
__construct |
( |
|
$config = array() | ) |
|
Constructor.
- Paramètres
-
array | $config | An optional associative array of configuration settings. |
Références $config.
◆ batchCopy()
batchCopy |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch copy modules to a new position or current.
- Paramètres
-
integer | $value | The new value matching a module position. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie
- boolean True if successful, false otherwise and internal error is set.
- Depuis
- 2.5
Références $data, $db, $menu, $position, $query, $user, $value, et elseif.
◆ batchMove()
batchMove |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch move modules to a new position or current.
- Paramètres
-
integer | $value | The new value matching a module position. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie
- boolean True if successful, false otherwise and internal error is set.
- Depuis
- 2.5
Références $position, $user, $value, et elseif.
◆ canEditState()
Method to test whether a record can have its state edited.
- Paramètres
-
object | $record | A record object. |
- Renvoie
- boolean True if allowed to change the state of the record. Defaults to the permission set in the component.
- Depuis
- 3.2
◆ cleanCache()
cleanCache |
( |
|
$group = null , |
|
|
|
$clientId = 0 |
|
) |
| |
|
protected |
Custom clean cache method for different clients
- Paramètres
-
string | $group | The name of the plugin group to import (defaults to null). |
integer | $clientId | The client ID. [optional] |
- Renvoie
- void
- Depuis
- 1.6
◆ delete()
◆ duplicate()
◆ generateNewTitle()
generateNewTitle |
( |
|
$categoryId, |
|
|
|
$title, |
|
|
|
$position |
|
) |
| |
|
protected |
Method to change the title.
- Paramètres
-
integer | $categoryId | The id of the category. Not used here. |
string | $title | The title. |
string | $position | The position. |
- Renvoie
- array Contains the modified title.
- Depuis
- 2.5
Références $position, et $title.
◆ getClient()
Method to get the client object
- Renvoie
- void
- Depuis
- 1.6
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
Method to get the record form.
- Paramètres
-
array | $data | Data for the form. |
boolean | $loadData | True 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
Check for existing module Modify the form based on Edit State access controls.
Références $clientId, $data, $form, $id, $item, $module, $user, ArrayHelper\getValue(), JPATH_ADMINISTRATOR, et JPATH_SITE.
◆ 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()
◆ getReorderConditions()
getReorderConditions |
( |
|
$table | ) |
|
|
protected |
A protected method to get a set of ordering conditions.
- Paramètres
-
object | $table | A 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 = 'Module' , |
|
|
|
$prefix = 'JTable' , |
|
|
|
$config = array() |
|
) |
| |
Returns a reference to the a Table object, always creating it.
- Paramètres
-
string | $type | The table type to instantiate |
string | $prefix | A prefix for the table class name. Optional. |
array | $config | Configuration array for model. Optional. |
- Renvoie
- JTable A database object
- Depuis
- 1.6
Références $config, $prefix, et $type.
◆ loadFormData()
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 $app, $data, $filters, $params, et null.
◆ populateState()
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
- Renvoie
- void
- Depuis
- 1.6
Références $app, et $params.
◆ prepareTable()
Prepare and sanitise the table prior to saving.
- Paramètres
-
JTable | $table | The database object |
- Renvoie
- void
- Depuis
- 1.6
Références ENT_QUOTES.
◆ preprocessForm()
preprocessForm |
( |
JForm |
$form, |
|
|
|
$data, |
|
|
|
$group = 'content' |
|
) |
| |
|
protected |
Method to preprocess the form
- Paramètres
-
JForm | $form | A form object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
- Renvoie
- void
- Depuis
- 1.6
- Exceptions
-
Exception | if there is an error loading the form. |
Références $client, $clientId, $data, $form, $lang, $module, jimport(), JPATH_ADMINISTRATOR, et null.
◆ save()
Method to save the form data.
- Paramètres
-
- Renvoie
- boolean True on success.
- Depuis
- 1.6
Références $context, $data, $db, $dispatcher, $input, $name, $query, elseif, JEventDispatcher\getInstance(), option, et JError\raiseWarning().
◆ validate()
validate |
( |
|
$form, |
|
|
|
$data, |
|
|
|
$group = null |
|
) |
| |
◆ $batch_commands
Valeur initiale := array(
'assetgroup_id' => 'batchAccess',
'language_id' => 'batchLanguage',
)
◆ $batch_copymove
$batch_copymove = 'position_id' |
|
protected |
◆ $helpKey
$helpKey = 'JHELP_EXTENSIONS_MODULE_MANAGER_EDIT' |
|
protected |
◆ $helpURL
◆ $text_prefix
$text_prefix = 'COM_MODULES' |
|
protected |
◆ $typeAlias
$typeAlias = 'com_modules.module' |
La documentation de cette classe a été générée à partir du fichier suivant :