Class ContactModelContact

Description
  • since: 1.5

Located in /components/com_contact/models/contact.php (line 17)

JObject
   |
   --JModelLegacy
      |
      --JModelForm
         |
         --ContactModelContact
Variable Summary
 mixed $view_item
 string $_context
 mixed $_item
Method Summary
 void getContactQuery ([ $pk = null])
 JForm getForm ([array $data = array()], [boolean $loadData = true])
 mixed &getItem ([integer $pk = null])
 boolean hit ([integer $pk = 0])
 void loadFormData ()
 void populateState ()
Variables
mixed $view_item = 'contact' (line 22)
  • since: 1.6
  • access: protected
string $_context = 'com_contact.contact' (line 31)

Model context string.

  • access: protected
mixed $_item = null (line 24)
  • access: protected

Inherited Variables

Inherited from JModelForm

JModelForm::$_forms

Inherited from JModelLegacy

JModelLegacy::$event_clean_cache
JModelLegacy::$name
JModelLegacy::$option
JModelLegacy::$state
JModelLegacy::$_db
JModelLegacy::$__state_set

Inherited from JObject

JObject::$_errors
Methods
getContactQuery (line 234)
  • access: protected
void getContactQuery ([ $pk = null])
  • $pk
getForm (line 70)

Method to get the contact form.

The base form is loaded from XML and then an event is fired

  • return: A JForm object on success, false on failure
  • since: 1.6
  • access: public
JForm getForm ([array $data = array()], [boolean $loadData = true])
  • 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.

Redefinition of:
JModelForm::getForm()
Abstract method for getting the form from the model.
getItem (line 107)

Gets a contact

  • return: Object or null
  • access: public
mixed &getItem ([integer $pk = null])
  • integer $pk: Id for the contact
hit (line 385)

Increment the hit counter for the contact.

  • return: True if successful; false otherwise and internal error set.
  • since: 3.0
  • access: public
boolean hit ([integer $pk = 0])
  • integer $pk: Optional primary key of the contact to increment.
loadFormData (line 91)
  • access: protected
void loadFormData ()

Redefinition of:
JModelForm::loadFormData()
Method to get the data that should be injected in the form.
populateState (line 40)

Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

  • since: 1.6
  • access: protected
void populateState ()

Redefinition of:
JModelLegacy::populateState()
Method to auto-populate the model state.

Inherited Methods

Inherited From JModelForm

 JModelForm::checkin()
 JModelForm::checkout()
 JModelForm::getForm()
 JModelForm::loadForm()
 JModelForm::loadFormData()
 JModelForm::preprocessData()
 JModelForm::preprocessForm()
 JModelForm::validate()

Inherited From JModelLegacy

 JModelLegacy::__construct()
 JModelLegacy::addIncludePath()
 JModelLegacy::addTablePath()
 JModelLegacy::cleanCache()
 JModelLegacy::getDbo()
 JModelLegacy::getInstance()
 JModelLegacy::getName()
 JModelLegacy::getState()
 JModelLegacy::getTable()
 JModelLegacy::loadHistory()
 JModelLegacy::populateState()
 JModelLegacy::setDbo()
 JModelLegacy::setState()
 JModelLegacy::_createFileName()
 JModelLegacy::_createTable()
 JModelLegacy::_getList()
 JModelLegacy::_getListCount()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 14:56:32 +0100 by phpDocumentor 1.4.3