Back to Joomla project (class list)

Class FormModel - list of methods

Prototype form model.

Extends

Extends

Direct known subclasses

Package: Joomla\CMS\MVC\Model
Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/MVC/Model/FormModel.php
Project: Joomla

Method Summary

public
(mixed $config = array(), \Joomla\CMS\MVC\Factory\MVCFactoryInterface $factory = null, \Joomla\CMS\Form\FormFactoryInterface $formFactory = null)

Constructor
Parameters
  • array $config An array of configuration options (name, state, dbo, table_path, ignore_request).
  • \Joomla\CMS\MVC\Factory\MVCFactoryInterface $factory The factory.
  • \Joomla\CMS\Form\FormFactoryInterface $formFactory The form factory.
Since
  • 3.6
-
  • \Exception
Show source code of this method: __construct Source Code

public bool
(mixed $pk = null)

Method to checkin a row.
Parameters
  • int $pk The numeric id of the primary key.
Returns
  • bool False on failure or error, true otherwise.
Since
  • 1.6
Show source code of this method: checkin Source Code

public bool
(mixed $pk = null)

Method to check-out a row for editing.
Parameters
  • int $pk The numeric id of the primary key.
Returns
  • bool False on failure or error, true otherwise.
Since
  • 1.6
Show source code of this method: checkout Source Code

public array|bool
(mixed $form, mixed $data, mixed $group = null)

Method to validate the form data.
Parameters
  • \Joomla\CMS\Form\Form $form The form to validate against.
  • array $data The data to validate.
  • string $group The name of the field group to validate.
Returns
  • array|bool Array of filtered data if valid, false otherwise.
Since
  • 1.6
-
  • \Joomla\CMS\Form\FormRule
  • \Joomla\CMS\Filter\InputFilter
Show source code of this method: validate Source Code

Properties Summary

protected array
$events_map
Maps events to plugin groups.
Since
  • 3.6

Tags Summary

Since
1.6