Class ContactModelContact

Description
  • since: 1.5

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

JObject
   |
   --JModel
      |
      --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 ([array $pk = null])
void loadFormData ()
void populateState ()
Variables
mixed $view_item = 'contact' (line 25)
  • since: 1.6
  • access: protected
string $_context = 'com_contact.contact' (line 34)

Model context string.

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

Inherited Variables

Inherited from JModelForm

JModelForm::$_forms

Inherited from JModel

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

Inherited from JObject

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

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 104)

Gets a list of contacts

  • return: Object or null
  • access: public
mixed &getItem ([array $pk = null])
  • array $pk
loadFormData (line 93)
  • access: protected
void loadFormData ()

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

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:
JModel::populateState()
Method to auto-populate the model state.

Inherited Methods

Inherited From JModelForm

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

Inherited From JModel

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

Inherited From JObject

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

Documentation generated on Mon, 25 Jun 2012 13:53:17 -0500 by phpDocumentor 1.4.4