ItemModel
class ItemModel extends BaseDatabaseModel
Prototype item 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
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
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.