Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getItem ($itemId=null) | |
getReturnPage () | |
save ($data) | |
getForm ($data=[], $loadData=true) | |
getTable ($name='Article', $prefix='Administrator', $options=array()) | |
Fonctions membres publiques hérités de ArticleModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
publish (&$pks, $value=1) | |
getItem ($pk=null) | |
getForm ($data=array(), $loadData=true) | |
validate ($form, $data, $group=null) | |
featured ($pks, $value=0, $featuredUp=null, $featuredDown=null) | |
hit () | |
delete (&$pks) | |
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 publiques hérités de WorkflowModelInterface | |
setUpWorkflow ($extension) | |
workflowPreprocessForm (Form $form, $data) | |
workflowBeforeStageChange () | |
workflowBeforeSave () | |
workflowAfterSave ($data) | |
workflowCleanupBatchMove ($oldId, $newId) | |
executeTransition (array $pks, int $transitionId) | |
getState ($property=null, $default=null) | |
getName () | |
Champs de données | |
$typeAlias = 'com_content.article' | |
Champs de données hérités de ArticleModel | |
$typeAlias = 'com_content.article' | |
Champs de données hérités de AdminModel | |
$typeAlias | |
Fonctions membres protégées | |
populateState () | |
preprocessForm (Form $form, $data, $group='content') | |
Fonctions membres protégées hérités de ArticleModel | |
cleanupPostBatchCopy (TableInterface $table, $newId, $oldId) | |
batchMove ($value, $pks, $contexts) | |
canDelete ($record) | |
canEditState ($record) | |
prepareTable ($table) | |
loadFormData () | |
getReorderConditions ($table) | |
preprocessForm (Form $form, $data, $group='content') | |
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) | |
getForm | ( | $data = [] , |
|
$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 $app, $data, $form, $id, $user, Factory\getApplication(), Associations\getAssociations(), Joomla\CMS\MVC\Model\getState(), et Associations\isEnabled().
getItem | ( | $itemId = null | ) |
Method to get article data.
integer | $itemId | The id of the article. |
Références $itemId, $return, $user, $userId, $value, class, elseif, Joomla\CMS\MVC\Model\getState(), Factory\getUser(), et ArrayHelper\toObject().
getReturnPage | ( | ) |
Get the return URL.
Références Joomla\CMS\MVC\Model\getState().
getTable | ( | $name = 'Article' , |
|
$prefix = 'Administrator' , |
|||
$options = array() |
|||
) |
Method to get a table object, load it if necessary.
string | $name | The table name. Optional. |
string | $prefix | The class prefix. Optional. |
array | $options | Configuration array for model. Optional. |
Implémente WorkflowModelInterface.
|
protected |
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
Références $app, $params, $return, Factory\getApplication(), et Joomla\CMS\MVC\Model\setState().
Allows preprocessing of the JForm object.
Form | $form | The form object |
array | $data | The data to be merged into the form object |
string | $group | The plugin group to be executed |
Références $data, $db, $form, $params, $query, $result, Joomla\Database\getDatabase(), Joomla\CMS\MVC\Model\getState(), ParameterType\INTEGER, Multilanguage\isEnabled(), Joomla\CMS\MVC\Model\preprocessForm(), et Form\setFieldAttribute().
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $data, Associations\getAssociations(), Multilanguage\isEnabled(), et Associations\isEnabled().
$typeAlias = 'com_content.article' |