![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de ContentModelArticle:Fonctions membres publiques | |
| getTable ($type='Content', $prefix='JTable', $config=array()) | |
| getItem ($pk=null) | |
| getForm ($data=array(), $loadData=true) | |
| validate ($form, $data, $group=null) | |
| save ($data) | |
| featured ($pks, $value=0) | |
| hit () | |
| delete (&$pks) | |
| getItem ($pk=null) | |
| hit ($pk=0) | |
| storeVote ($pk=0, $rate=0) | |
Champs de données | |
| $typeAlias = 'com_content.article' | |
Fonctions membres protégées | |
| cleanupPostBatchCopy (\JTableInterface $table, $newId, $oldId) | |
| batchMove ($value, $pks, $contexts) | |
| canDelete ($record) | |
| canEditState ($record) | |
| prepareTable ($table) | |
| loadFormData () | |
| getReorderConditions ($table) | |
| preprocessForm (JForm $form, $data, $group='content') | |
| cleanCache ($group=null, $clientId=0) | |
| populateState () | |
| cleanCache ($group=null, $clientId=0) | |
Attributs protégés | |
| $text_prefix = 'COM_CONTENT' | |
| $associationsContext = 'com_content.item' | |
| $_context = 'com_content.article' | |
Fonctions membres privées | |
| canCreateCategory () | |
Item Model for an Article.
Content Component Article Model
|
protected |
Batch move categories to a new category.
| integer | $value | The new category ID. |
| array | $pks | An array of row IDs. |
| array | $contexts | An array of item contexts. |
Références $dispatcher, $field, $fields, $value, FieldsHelper\getFields(), JEventDispatcher\getInstance(), JPATH_ADMINISTRATOR, et JLoader\register().
|
private |
Is the user allowed to create an on the fly category?
|
protected |
Method to test whether a record can be deleted.
| object | $record | A record object. |
|
protected |
Method to test whether a record can have its state edited.
| object | $record | A record object. |
Références $user.
|
protected |
Cleans the cache of com_content and content modules
| string | $group | The cache group |
| integer | $clientId | The ID of the client |
|
protected |
Custom clean the cache of com_content and content modules
| string | $group | The cache group |
| integer | $clientId | The ID of the client |
|
protected |
Function that can be overridden to do any data cleanup after batch copying data
| \JTableInterface | $table | The table object containing the newly created item |
| integer | $newId | The id of the new item |
| integer | $oldId | The original item id |
Références $db, $field, $fields, $query, FieldsHelper\getFields(), JEventDispatcher\getInstance(), JPATH_ADMINISTRATOR, et JLoader\register().
| delete | ( | & | $pks | ) |
| featured | ( | $pks, | |
$value = 0 |
|||
| ) |
| getForm | ( | $data = array(), |
|
$loadData = true |
|||
| ) |
| getItem | ( | $pk = null | ) |
Method to get article data.
| integer | $pk | The id of the article. |
Références $asset, $data, $date, $db, $groups, $published, $query, $user, $userId, elseif, null, et JError\raiseError().
| getItem | ( | $pk = null | ) |
|
protected |
A protected method to get a set of ordering conditions.
| object | $table | A record object. |
| getTable | ( | $type = 'Content', |
|
$prefix = 'JTable', |
|||
$config = array() |
|||
| ) |
| hit | ( | $pk = 0 | ) |
Increment the hit counter for the article.
| integer | $pk | Optional primary key of the article to increment. |
Références $input.
| hit | ( | ) |
Void hit function for pagebreak when editing content from frontend
|
protected |
|
protected |
|
protected |
Prepare and sanitise the table data prior to saving.
| JTable | $table | A JTable object. |
|
protected |
| save | ( | $data | ) |
Method to save the form data.
| array | $data | The form data. |
Références $check, $data, $filter, $i, $input, $title, $url, CategoriesHelper\createCategory(), JPATH_ADMINISTRATOR, null, JLoader\register(), et CategoriesHelper\validateCategoryId().
| storeVote | ( | $pk = 0, |
|
$rate = 0 |
|||
| ) |
Save user vote on article
| integer | $pk | Joomla Article Id |
| integer | $rate | Voting rate |
Références $db, $query, $rating, et JError\raiseWarning().
| validate | ( | $form, | |
| $data, | |||
$group = null |
|||
| ) |
Method to validate the form data.
| JForm | $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 validate().
|
protected |
|
protected |
|
protected |
| $typeAlias = 'com_content.article' |