[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_contact/src/Model/ -> FormModel.php (summary)

(no description)

Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 237 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FormModel:: (7 methods):
  getForm()
  getItem()
  getReturnPage()
  save()
  populateState()
  preprocessForm()
  getTable()


Class: FormModel  - X-Ref

Contact Component Contact Model

getForm($data = array()   X-Ref
Method to get the row form.

param: array    $data      Data for the form.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: Form|boolean  A Form object on success, false on failure

getItem($itemId = null)   X-Ref
Method to get contact data.

param: integer  $itemId  The id of the contact.
return: mixed  Contact item data object on success, false on failure.

getReturnPage()   X-Ref
Get the return URL.

return: string  The return URL.

save($data)   X-Ref
Method to save the form data.

param: array  $data  The form data.
return: boolean  True on success.

populateState()   X-Ref
Method to auto-populate the model state.

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

return: void

preprocessForm(Form $form, $data, $group = 'contact')   X-Ref
Allows preprocessing of the JForm object.

param: Form    $form   The form object
param: array   $data   The data to be merged into the form object
param: string  $group  The plugin group to be executed
return: void

getTable($name = 'Contact', $prefix = 'Administrator', $options = array()   X-Ref
Method to get a table object, load it if necessary.

param: string  $name     The table name. Optional.
param: string  $prefix   The class prefix. Optional.
param: array   $options  Configuration array for model. Optional.
return: bool|Table  A Table object



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer