JModel
Base class for a Joomla Model
Acts as a Factory class for application specific objects and provides many supporting API functions.
Located in /joomla/application/component/model.php (line 32)
JObject (Subpackage Base)
![]()
JModel (Subpackage Application)
object
$_db
(line 48)
Database Connector
string
$_name
(line 40)
The model (base) name
string
$_state
(line 56)
An state object
Inherited Variables
Inherited from JObject
JObject::$_errors
Constructor
- $config
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Add a directory where JModel should search for models. You may either pass a string or an array of directories.
- string $path: A path to search.
Adds to the stack of model table paths in LIFO order.
- string|array $path: The directory (-ies) to add.
Returns a reference to the a Model object, always creating it
- string $type: The model type to instantiate
- string $prefix: Prefix for the model class name. Optional.
- array $config: Configuration array for model. Optional.
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
Method to get model state variables
- string $property: Optional parameter name
Method to get a table object, load it if necessary.
- string $name: The table name. Optional.
- string $prefix: The class prefix. Optional.
- array $options: Configuration array for model. Optional.
Method to set the database connector object
- object $db: A JDatabase based object
- &$db
Method to set model state variables
- string $property: The name of the property
- mixed $value: The value of the property to set
Returns an object list
- string $query: The query
- int $limitstart: Offset
- int $limit: The number of records
Returns a record count for the query
- string $query: The query
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
Documentation generated on Tue, 29 Jan 2008 18:48:27 +0000 by phpDocumentor 1.3.1




JModel (Subpackage Application)
static