[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/MVC/Model/ -> FormBehaviorTrait.php (summary)

Joomla! Content Management System

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

Defines 4 functions

  loadForm()
  loadFormData()
  preprocessData()
  preprocessForm()

Functions
Functions that are not part of a class:

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: Form

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



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