Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
save ($data) | |
getTable ($name='Group', $prefix='Administrator', $options=array()) | |
getForm ($data=array(), $loadData=true) | |
validate ($form, $data, $group=null) | |
getItem ($pk=null) | |
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) | |
Champs de données | |
$typeAlias = null | |
Champs de données hérités de AdminModel | |
$typeAlias | |
Fonctions membres protégées | |
canDelete ($record) | |
canEditState ($record) | |
populateState () | |
getReorderConditions ($table) | |
preprocessForm (Form $form, $data, $group='content') | |
loadFormData () | |
cleanCache ($group=null, $clientId=0) | |
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 | |
$batch_commands | |
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='') |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
Group Model
|
protected |
Method to test whether a record can be deleted.
object | $record | A record object. |
Références Factory\getUser().
|
protected |
Method to test whether a record can have its state changed.
object | $record | A record object. |
Références $user, et Factory\getUser().
|
protected |
Clean the cache
string | $group | The cache group |
integer | $clientId |
Références $context, et Factory\getApplication().
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Abstract method for getting the form from the model.
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 $context, $data, $form, $user, Factory\getApplication(), Joomla\CMS\MVC\Model\getState(), Factory\getUser(), Joomla\CMS\MVC\Model\loadForm(), et Joomla\CMS\MVC\Model\setState().
getItem | ( | $pk = null | ) |
Method to get a single record.
integer | $pk | The id of the primary key. |
Références $item, et Joomla\CMS\MVC\Model\getState().
|
protected |
A protected method to get a set of ordering conditions.
Références $db, et Joomla\Database\getDatabase().
getTable | ( | $name = 'Group' , |
|
$prefix = 'Administrator' , |
|||
$options = array() |
|||
) |
|
protected |
Method to get the data that should be injected in the form.
Références $app, $context, $data, $filters, Factory\getApplication(), null, et Joomla\CMS\MVC\Model\preprocessData().
|
protected |
Auto-populate the model state.
Note. Calling getState in this method will result in recursion.
Références $context, Factory\getApplication(), Joomla\CMS\MVC\Model\populateState(), et Joomla\CMS\MVC\Model\setState().
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 $component, $data, $form, $lang, $parts, $path, $section, Text\_(), Path\clean(), FieldsHelper\extract(), Factory\getLanguage(), JPATH_ADMINISTRATOR, JPATH_BASE, null, et Joomla\CMS\MVC\Model\preprocessForm().
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $data, $input, et Factory\getApplication().
validate | ( | $form, | |
$data, | |||
$group = null |
|||
) |
Method to validate the form data.
Form | $form | The form to validate against. |
array | $data | The data to validate. |
string | $group | The name of the field group to validate. |
Références $data, $form, et Factory\getUser().
|
protected |
$typeAlias = null |