API15

JModel

From Joomla! Documentation

Revision as of 12:27, 25 March 2010 by Doxiki (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[Edit Descripton] Template:Description:JModel

Defined in[edit]

libraries/joomla/application/component/model.php

Methods[edit]

Method name Description
__construct Constructor
getInstance Returns a reference to the a Model object, always creating it
setState Method to set model state variables
getState Method to get model state variables
getDBO Method to get the database connector object
setDBO Method to set the database connector object
getName Method to get the model name
getTable Method to get a table object, load it if necessary.
addIncludePath Add a directory where JModel should search for models. You may either pass a string or an array of directories.
addTablePath Adds to the stack of model table paths in LIFO order.

Importing[edit]

jimport( 'joomla.application.component.model' );

[Edit See Also] Template:SeeAlso:JModel

Examples[edit]

<CodeExamplesForm />