[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

Joomla! Content Management System

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

Defines 4 functions

  __construct()
  checkin()
  checkout()
  validate()

Functions
Functions that are not part of a class:

__construct($config = array()   X-Ref
Constructor

param: array                 $config       An array of configuration options (name, state, dbo, table_path, ignore_request).
param: MVCFactoryInterface   $factory      The factory.
param: FormFactoryInterface  $formFactory  The form factory.

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.

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: array|boolean  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