[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
(no description)
Copyright: | (C) 2006 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 438 lines (16 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ContactModel:: (7 methods):
populateState()
getForm()
loadFormData()
getItem()
buildContactExtendedData()
getSlugColumn()
hit()
Class: ContactModel - X-Ref
Single item model for a contactpopulateState() X-Ref |
Method to auto-populate the model state. Note. Calling getState in this method will result in recursion. return: void |
getForm($data = array() X-Ref |
Method to get the contact form. The base form is loaded from XML and then an event is fired param: array $data An optional array of data for the form to interrogate. param: boolean $loadData True if the form is to load its own data (default case), false if not. return: Form A Form object on success, false on failure |
loadFormData() X-Ref |
Method to get the data that should be injected in the form. return: array The default data is an empty array. |
getItem($pk = null) X-Ref |
Gets a contact param: integer $pk Id for the contact return: mixed Object or null |
buildContactExtendedData($contact) X-Ref |
Load extended data (profile, articles) for a contact param: object $contact The contact object return: void |
getSlugColumn($query, $id, $alias) X-Ref |
Generate column expression for slug or catslug. param: QueryInterface $query Current query instance. param: string $id Column id name. param: string $alias Column alias name. return: string |
hit($pk = 0) X-Ref |
Increment the hit counter for the contact. param: integer $pk Optional primary key of the contact to increment. return: boolean True if successful; false otherwise and internal error set. |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |