Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getTable ($type='Newsfeed', $prefix='NewsfeedsTable', $config=array()) | |
getForm ($data=array(), $loadData=true) | |
save ($data) | |
getItem ($pk=null) | |
publish (&$pks, $value=1) | |
validate ($form, $data, $group=null) | |
& | getItem ($pk=null) |
hit ($pk=0) | |
Champs de données | |
$typeAlias = 'com_newsfeeds.newsfeed' | |
Fonctions membres protégées | |
canDelete ($record) | |
canEditState ($record) | |
loadFormData () | |
prepareTable ($table) | |
getReorderConditions ($table) | |
preprocessForm (JForm $form, $data, $group='content') | |
populateState () | |
Attributs protégés | |
$associationsContext = 'com_newsfeeds.item' | |
$text_prefix = 'COM_NEWSFEEDS' | |
$_context = 'com_newsfeeds.newsfeed' | |
Fonctions membres privées | |
canCreateCategory () | |
Newsfeed model.
Newsfeeds Component Newsfeed Model
|
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 changed.
object | $record | A record object. |
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
& getItem | ( | $pk = null | ) |
Method to get newsfeed data.
integer | $pk | The id of the newsfeed. |
Références $data, $db, $groups, $published, $query, $user, null, et JError\raiseError().
getItem | ( | $pk = null | ) |
|
protected |
A protected method to get a set of ordering conditions.
object | $table | A record object. |
Références $condition.
getTable | ( | $type = 'Newsfeed' , |
|
$prefix = 'NewsfeedsTable' , |
|||
$config = array() |
|||
) |
hit | ( | $pk = 0 | ) |
Increment the hit counter for the newsfeed.
int | $pk | Optional primary key of the item to increment. |
Références $input.
|
protected |
|
protected |
|
protected |
Prepare and sanitise the table prior to saving.
JTable | $table | The table object |
Références $date, $db, $query, $user, et ENT_QUOTES.
|
protected |
A protected method to get a set of ordering conditions.
JForm | $form | The form object. |
array | $data | The data to be injected into the form |
string | $group | The plugin group to process |
Références $data, $field, $fields, $form, $language, et null.
publish | ( | & | $pks, |
$value = 1 |
|||
) |
Method to change the published state of one or more records.
array | &$pks | A list of the primary keys to change. |
integer | $value | The value of the published state. |
Références $value.
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $data, $input, $name, CategoriesHelper\createCategory(), JPATH_ADMINISTRATOR, JLoader\register(), et CategoriesHelper\validateCategoryId().
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_newsfeeds.newsfeed' |