FormModel
class FormModel extends BaseDatabaseModel
Prototype form model.
Methods
Add a directory where \JModelLegacy should search for models. You may either pass a string or an array of directories.
Adds to the stack of model table paths in LIFO order.
Returns a Model object, always creating it
Constructor.
Method to get model state variables
Method to get a table object, load it if necessary.
Method to load a row for editing from the version history table.
Method to set model state variables
Method to checkin a row.
Method to check-out a row for editing.
Abstract method for getting the form from the model.
Method to validate the form data.
Details
static
array
addIncludePath(
mixed $path = '',
string $prefix = '')
Add a directory where \JModelLegacy should search for models. You may either pass a string or an array of directories.
static
JModelLegacy|boolean
getInstance(
string $type,
string $prefix = '',
array $config = array())
Returns a Model object, always creating it
string
getName()
Method to get the model name
The model name. By default parsed using the classname or it can be set by passing a $config['name'] in the class constructor
JTable
getTable(
string $name = '',
string $prefix = 'Table',
array $options = array())
Method to get a table object, load it if necessary.
boolean
loadHistory(
integer $version_id,
JTable $table)
Method to load a row for editing from the version history table.