Class JModelLegacy
Base class for a Joomla Model
Acts as a Factory class for application specific objects and provides many supporting API functions.
- JObject
- JModelLegacy
Direct known subclasses
Indirect known subclasses
Abstract
Package: Joomla\Legacy\Model
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Since: 2.5.5
Located at legacy/model/legacy.php
Package: Joomla\Legacy\Model
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Since: 2.5.5
Located at legacy/model/legacy.php
Methods summary
public 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. |
public static
|
|
protected static
string
|
|
public static
|
#
getInstance( string $type, string $prefix = '', array $config = array() )
Returns a Model object, always creating it |
public
|
|
protected
object[]
|
|
protected
integer
|
|
protected
|
#
_createTable( string $name, string $prefix = 'Table', array $config = array() )
Method to load and return a model object. |
public
|
|
public
string
|
|
public
mixed
|
|
public
|
|
public
boolean
|
#
loadHistory( integer $version_id,
Method to load a row for editing from the version history table. |
protected
|
|
public
|
|
public
mixed
|
|
protected
|
Methods inherited from JObject
__toString()
,
def()
,
get()
,
getError()
,
getErrors()
,
getProperties()
,
set()
,
setError()
,
setProperties()
Magic methods summary
Properties summary
protected
boolean
|
$__state_set |
#
Indicates if the internal state has been set |
protected
|
$_db |
#
Database Connector |
protected
string
|
$name |
#
The model (base) name |
protected
string
|
$option |
#
The URL option for the component. |
protected
|
$state |
#
A state object |
protected
string
|
$event_clean_cache |
#
The event to trigger when cleaning cache. |