[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

(no description)

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

Defines 7 functions

  checkin()
  checkout()
  loadForm()
  loadFormData()
  preprocessData()
  preprocessForm()
  validate()

Functions
Functions that are not part of a class:

checkin($pk = null)   X-Ref
Method to checkin a row.

param: integer  $pk  The numeric id of the primary key.
return: boolean  False on failure or error, true otherwise.

checkout($pk = null)   X-Ref
Method to check-out a row for editing.

param: integer  $pk  The numeric id of the primary key.
return: boolean  False on failure or error, true otherwise.

loadForm($name, $source = null, $options = array()   X-Ref
Method to get a form object.

param: string   $name     The name of the form.
param: string   $source   The form source. Can be XML string if file flag is set to false.
param: array    $options  Optional array of options for the form creation.
param: boolean  $clear    Optional argument to force load a new form.
param: string   $xpath    An optional xpath to search for the fields.
return: mixed  JForm object on success, False on error.

loadFormData()   X-Ref
Method to get the data that should be injected in the form.

return: array    The default data is an empty array.

preprocessData($context, &$data, $group = 'content')   X-Ref
Method to allow derived classes to preprocess the data.

param: string  $context  The context identifier.
param: mixed   &$data    The data to be processed. It gets altered directly.
param: string  $group    The name of the plugin group to import (defaults to "content").
return: void

preprocessForm(Form $form, $data, $group = 'content')   X-Ref
Method to allow derived classes to preprocess the form.

param: Form    $form   A Form object.
param: mixed   $data   The data expected for the form.
param: string  $group  The name of the plugin group to import (defaults to "content").
return: void

validate($form, $data, $group = null)   X-Ref
Method to validate the form data.

param: Form    $form   The form to validate against.
param: array   $data   The data to validate.
param: string  $group  The name of the field group to validate.
return: mixed  Array of filtered data if valid, false otherwise.



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