![]() |
Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array()) | |
delete (&$pks) | |
duplicate (&$pks) | |
& | getClient () |
getForm ($data=array(), $loadData=true) | |
getItem ($pk=null) | |
getHelp () | |
getTable ($type='Module', $prefix='JTable', $config=array()) | |
validate ($form, $data, $group=null) | |
save ($data) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
batch ($commands, $pks, $contexts) | |
checkin ($pks=array()) | |
checkout ($pk=null) | |
delete (&$pks) | |
getItem ($pk=null) | |
publish (&$pks, $value=1) | |
reorder ($pks, $delta=0) | |
save ($data) | |
saveorder ($pks=array(), $order=null) | |
generateTitle ($categoryId, $table) | |
initBatch () | |
editAssociations ($data) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
checkin ($pk=null) | |
checkout ($pk=null) | |
validate ($form, $data, $group=null) | |
![]() | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
![]() | |
__construct ($config=array()) | |
getName () | |
![]() | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
![]() | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
![]() | |
setDispatcher (DispatcherInterface $dispatcher) | |
![]() | |
setCurrentUser (User $currentUser) | |
![]() | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
![]() | |
setDatabase (DatabaseInterface $db) | |
![]() | |
setFormFactory (FormFactoryInterface $factory) | |
Champs de données | |
$typeAlias = 'com_modules.module' | |
![]() | |
$typeAlias | |
Fonctions membres protégées | |
populateState () | |
batchCopy ($value, $pks, $contexts) | |
batchMove ($value, $pks, $contexts) | |
canEditState ($record) | |
generateNewTitle ($categoryId, $title, $position) | |
loadFormData () | |
prepareTable ($table) | |
preprocessForm (Form $form, $data, $group='content') | |
getReorderConditions ($table) | |
cleanCache ($group=null, $clientId=0) | |
![]() | |
batchAccess ($value, $pks, $contexts) | |
batchCopy ($value, $pks, $contexts) | |
cleanupPostBatchCopy (TableInterface $table, $newId, $oldId) | |
batchLanguage ($value, $pks, $contexts) | |
batchMove ($value, $pks, $contexts) | |
batchTag ($value, $pks, $contexts) | |
canDelete ($record) | |
canEditState ($record) | |
generateNewTitle ($categoryId, $alias, $title) | |
getReorderConditions ($table) | |
populateState () | |
prepareTable ($table) | |
checkCategoryId ($categoryId) | |
redirectToAssociations ($data) | |
![]() | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Attributs protégés | |
$text_prefix = 'COM_MODULES' | |
$helpKey = '' | |
$helpURL | |
$batch_copymove = 'position_id' | |
$batch_commands | |
![]() | |
$text_prefix = null | |
$event_after_delete = null | |
$event_after_save = null | |
$event_before_delete = null | |
$event_before_save = null | |
$event_before_change_state = null | |
$event_change_state = null | |
$event_before_batch = null | |
$batch_copymove = 'category_id' | |
$batch_commands | |
$associationsContext = null | |
$batchSet = null | |
$user = null | |
$table = null | |
$tableClassName = null | |
$contentType = null | |
$type = null | |
![]() | |
$events_map = null | |
![]() | |
$option = null | |
$event_clean_cache = null | |
![]() | |
$name | |
![]() | |
$_errors = array() | |
Membres hérités additionnels | |
![]() | |
static | addIncludePath ($path='', $prefix='') |
![]() | |
static | $paths |
Module model.
__construct | ( | $config = array() | ) |
Constructor.
array | $config | An optional associative array of configuration settings. |
Références $config, et Symfony\Contracts\Service\__construct().
|
protected |
Batch copy modules to a new position or current.
integer | $value | The new value matching a module position. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Références $data, $db, $i, $menu, $position, $query, $user, $value, Text\_(), elseif, Joomla\Database\getDatabase(), Factory\getUser(), et ParameterType\INTEGER.
|
protected |
Batch move modules to a new position or current.
integer | $value | The new value matching a module position. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Références $position, $user, $value, Text\_(), elseif, et Factory\getUser().
|
protected |
Method to test whether a record can have its state edited.
object | $record | A record object. |
Références Factory\getUser().
|
protected |
Custom clean cache method for different clients
string | $group | The name of the plugin group to import (defaults to null). |
integer | $clientId |
delete | ( | & | $pks | ) |
Method to delete rows.
array | &$pks | An array of item ids. |
Références $app, $context, $db, $name, $query, $result, $user, Text\_(), Factory\getApplication(), Joomla\Database\getDatabase(), Factory\getUser(), PluginHelper\importPlugin(), et ParameterType\INTEGER.
duplicate | ( | & | $pks | ) |
Method to duplicate modules.
array | &$pks | An array of primary key IDs. |
Références $data, $db, $query, $rows, $user, Text\_(), Factory\getApplication(), Joomla\Database\getDatabase(), Factory\getUser(), ParameterType\INTEGER, et null.
|
protected |
Method to change the title.
integer | $categoryId | The id of the category. Not used here. |
string | $title | The title. |
string | $position | The position. |
Références $position, $title, et StringHelper\increment().
& getClient | ( | ) |
Method to get the client object
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the record form.
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Check for existing module Modify the form based on Edit State access controls.
Implémente FormModelInterface.
Références $clientId, $data, $form, $id, $item, $module, $user, Form\addFieldPath(), Factory\getUser(), ArrayHelper\getValue(), ModuleHelper\isAdminMultilang(), JPATH_ADMINISTRATOR, JPATH_SITE, Joomla\CMS\MVC\Model\loadForm(), et Joomla\CMS\MVC\Model\setState().
getHelp | ( | ) |
Get the necessary data to load an item help screen.
getItem | ( | $pk = null | ) |
Method to get a single record.
integer | $pk | The id of the primary key. |
Références $client, $db, $extension, $path, $query, $return, Route\_(), class, Path\clean(), elseif, Factory\getApplication(), ApplicationHelper\getClientInfo(), Joomla\Database\getDatabase(), Joomla\CMS\MVC\Model\getState(), ParameterType\INTEGER, null, et ArrayHelper\toObject().
|
protected |
A protected method to get a set of ordering conditions.
object | $table | A record object. |
Références $db, et Joomla\Database\getDatabase().
getTable | ( | $type = 'Module' , |
|
$prefix = 'JTable' , |
|||
$config = array() |
|||
) |
Returns a reference to the a Table object, always creating it.
string | $type | The table type to instantiate |
string | $prefix | A prefix for the table class name. Optional. |
array | $config | Configuration array for model. Optional. |
Références $config, $prefix, $type, et Table\getInstance().
|
protected |
Method to get the data that should be injected in the form.
Références $app, $clientId, $data, $filters, $params, Factory\getApplication(), null, et Joomla\CMS\MVC\Model\preprocessData().
|
protected |
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
Références $app, $params, Factory\getApplication(), ComponentHelper\getParams(), et Joomla\CMS\MVC\Model\setState().
|
protected |
Prepare and sanitise the table prior to saving.
Table | $table | The database object |
Références ENT_QUOTES.
Method to preprocess the form
Form | $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"). |
Références $client, $clientId, $data, $form, $helpURL, $lang, $module, $template, $xml, Text\_(), Form\addFormPath(), Path\clean(), Folder\files(), ApplicationHelper\getClientInfo(), Factory\getLanguage(), Joomla\CMS\MVC\Model\getState(), ModulesHelper\getTemplates(), JPATH_ADMINISTRATOR, JPATH_SITE, et Joomla\CMS\MVC\Model\preprocessForm().
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $context, $data, $db, $input, $name, $query, $result, $this, elseif, Factory\getApplication(), Joomla\CMS\MVC\Model\getState(), PluginHelper\importPlugin(), StringHelper\increment(), ParameterType\INTEGER, et Joomla\CMS\MVC\Model\setState().
validate | ( | $form, | |
$data, | |||
$group = null |
|||
) |
Loads ContentHelper for filters before validating data.
object | $form | The form to validate against. |
array | $data | The data to validate. |
string | $group | The name of the group(defaults to null). |
Références $data, $form, et Factory\getUser().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
$typeAlias = 'com_modules.module' |