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='Contact', $prefix='ContactTable', $config=array()) | |
getForm ($data=array(), $loadData=true) | |
getItem ($pk=null) | |
save ($data) | |
featured ($pks, $value=0) | |
validate ($form, $data, $group=null) | |
getForm ($data=array(), $loadData=true) | |
& | getItem ($pk=null) |
hit ($pk=0) | |
Champs de données | |
$typeAlias = 'com_contact.contact' | |
Fonctions membres protégées | |
batchUser ($value, $pks, $contexts) | |
canDelete ($record) | |
canEditState ($record) | |
loadFormData () | |
prepareTable ($table) | |
getReorderConditions ($table) | |
preprocessForm (JForm $form, $data, $group='content') | |
populateState () | |
loadFormData () | |
buildContactExtendedData ($contact) | |
getContactQuery ($pk=null) | |
Attributs protégés | |
$associationsContext = 'com_contact.item' | |
$batch_copymove = 'category_id' | |
$batch_commands | |
$view_item = 'contact' | |
$_item = null | |
$_context = 'com_contact.contact' | |
Fonctions membres privées | |
canCreateCategory () | |
Item Model for a Contact.
|
protected |
Batch change a linked user.
integer | $value | The new value matching a User ID. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Références $value.
|
protected |
Load extended data (profile, articles) for a contact
object | $contact | The contact object |
Références $data, $db, $dispatcher, $form, $groups, $published, $query, $user, JEventDispatcher\getInstance(), JPATH_ADMINISTRATOR, JPATH_SITE, et null.
|
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. |
featured | ( | $pks, | |
$value = 0 |
|||
) |
|
protected |
Gets the query to load a contact item
integer | $pk | The item to be loaded |
Exception | On database failure |
Références $data, $db, $dispatcher, $form, $groups, $published, $query, $user, JEventDispatcher\getInstance(), JPATH_ADMINISTRATOR, et null.
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the contact form. The base form is loaded from XML and then an event is fired
array | $data | An optional array of data for the form to interrogate. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the row form.
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Références $data, $form, et JPATH_ADMINISTRATOR.
& getItem | ( | $pk = null | ) |
Gets a contact
integer | $pk | Id for the contact |
In case some entity params have been set to "use global", those are represented as an empty string and must be "overridden" by merging the component and / or menu params here.
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.
JTable | $table | A record object. |
getTable | ( | $type = 'Contact' , |
|
$prefix = 'ContactTable' , |
|||
$config = array() |
|||
) |
hit | ( | $pk = 0 | ) |
Increment the hit counter for the contact.
integer | $pk | Optional primary key of the contact to increment. |
Références $input.
|
protected |
Method to get the data that should be injected in the form.
Références $data.
|
protected |
|
protected |
|
protected |
Prepare and sanitise the table prior to saving.
JTable | $table | The JTable object |
Références $date, $db, $query, et ENT_QUOTES.
|
protected |
save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Références $data, $input, $link, $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 |
A loaded item
|
protected |
|
protected |
|
protected |
$typeAlias = 'com_contact.contact' |
|
protected |
The name of the view for a single item