Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
delete (&$pks) | |
getItem ($pk=null) | |
getForm ($data=array(), $loadData=true) | |
publish (&$pks, $value=1) | |
save ($data) | |
Fonctions membres publiques hérités de AdminModel | |
__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) | |
Fonctions membres publiques hérités de FormModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
checkin ($pk=null) | |
checkout ($pk=null) | |
validate ($form, $data, $group=null) | |
Fonctions membres publiques hérités de BaseDatabaseModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
Fonctions membres publiques hérités de BaseModel | |
__construct ($config=array()) | |
getName () | |
Fonctions membres publiques hérités de CMSObject | |
__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) | |
Fonctions membres publiques hérités de StatefulModelInterface | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de CurrentUserInterface | |
setCurrentUser (User $currentUser) | |
Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
Fonctions membres publiques hérités de DatabaseAwareInterface | |
setDatabase (DatabaseInterface $db) | |
Fonctions membres publiques hérités de FormFactoryAwareInterface | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres protégées | |
populateState () | |
loadFormData () | |
Fonctions membres protégées hérités de AdminModel | |
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) | |
Fonctions membres protégées hérités de BaseDatabaseModel | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Attributs protégés | |
$item | |
Attributs protégés hérités de AdminModel | |
$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 | |
Attributs protégés hérités de FormModel | |
$events_map = null | |
Attributs protégés hérités de BaseDatabaseModel | |
$option = null | |
$event_clean_cache = null | |
Attributs protégés hérités de BaseModel | |
$name | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseModel | |
static | addIncludePath ($path='', $prefix='') |
Champs de données hérités de AdminModel | |
$typeAlias | |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
Private Message model.
delete | ( | & | $pks | ) |
Check that recipient user is the one trying to delete and then call parent delete method
array | &$pks | An array of record primary keys. |
Références $i, $user, Text\_(), Log\add(), Factory\getApplication(), Factory\getUser(), et Log\WARNING.
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. |
Implémente FormModelInterface.
Références $form, et Joomla\CMS\MVC\Model\loadForm().
getItem | ( | $pk = null | ) |
Method to get a single record.
integer | $pk | The id of the primary key. |
Références $db, $item, $message, $query, Text\_(), elseif, Joomla\Database\getDatabase(), Joomla\CMS\MVC\Model\getState(), Factory\getUser(), et ParameterType\INTEGER.
|
protected |
Method to get the data that should be injected in the form.
Références $data, Factory\getApplication(), et Joomla\CMS\MVC\Model\preprocessData().
|
protected |
Method to auto-populate the model state.
This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the model configuration flag to ignore the request is set.
Note. Calling getState in this method will result in recursion.
Références $input, $user, Factory\getApplication(), Factory\getUser(), Joomla\CMS\MVC\Model\populateState(), et Joomla\CMS\MVC\Model\setState().
publish | ( | & | $pks, |
$value = 1 |
|||
) |
Checks that the current user matches the message recipient and calls the parent publish method
array | &$pks | A list of the primary keys to change. |
integer | $value | The value of the published state. |
Références $i, $user, $value, Text\_(), Log\add(), Factory\getApplication(), Factory\getUser(), et Log\WARNING.
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $app, $config, $data, $key, $lang, $message, $model, $sitename, $subject, Text\_(), Log\add(), ENT_COMPAT, Factory\getApplication(), Factory\getDate(), User\getInstance(), Language\getInstance(), ComponentHelper\getParams(), Factory\getUser(), JPATH_ADMINISTRATOR, Route\link(), Joomla\CMS\MVC\Model\setState(), Route\TLS_FORCE, Route\TLS_IGNORE, et Log\WARNING.
|
protected |