API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JModel::__construct | ( | $ | config = array() | ) |
Constructor
Réimplémentée dans JInstallationModel.
Références $config, et JFactory::getDBO().
JModel::_createFileName | ( | $ | type, |
$ | parts = array() |
||
) |
Create the filename for a resource
private
string | $type | The resource type to create the filename for |
array | $parts | An associative array of filename information |
Références $filename, $parts, et $type.
Référencé par getInstance().
& JModel::_createTable | ( | $ | name, |
$ | prefix = 'Table' , |
||
$ | config = array() |
||
) |
Method to load and return a model object.
private
string | The name of the view |
string | The class prefix. Optional. |
Références $config, $name, et JTable::getInstance().
& JModel::_getList | ( | $ | query, |
$ | limitstart = 0 , |
||
$ | limit = 0 |
||
) |
Returns an object list
string | The query |
int | Offset |
int | The number of records |
Réimplémentée dans ContentModelArchive.
Références $limit, $limitstart, et $query.
JModel::_getListCount | ( | $ | query | ) |
Returns a record count for the query
string | The query |
Références $query.
JModel::addIncludePath | ( | $ | path = '' | ) |
Add a directory where JModel should search for models. You may either pass a string or an array of directories.
public
string | A path to search. |
Références $path, JPath::clean(), et jimport().
Référencé par JController::addModelPath(), getInstance(), et restoreTrash().
JModel::addTablePath | ( | $ | path | ) | [static] |
Adds to the stack of model table paths in LIFO order.
string|array | The directory (-ies) to add. |
Références $path, JTable::addIncludePath(), et jimport().
& JModel::getDBO | ( | ) |
Method to get the database connector object
public
& JModel::getInstance | ( | $ | type, |
$ | prefix = '' , |
||
$ | config = array() |
||
) |
Returns a reference to the a Model object, always creating it
string | The model type to instantiate |
string | Prefix for the model class name. Optional. |
array | Configuration array for model. Optional. |
Références $config, $path, $type, _createFileName(), addIncludePath(), JPath::find(), jimport(), et JError::raiseWarning().
Référencé par JController::_createModel(), WeblinksViewCategory::display(), et restoreTrash().
JModel::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
public
Références $name, et JError::raiseError().
JModel::getState | ( | $ | property = null | ) |
Method to get model state variables
public
string | Optional parameter name |
Réimplémentée dans MediaModelList, et MediaModelManager.
& JModel::getTable | ( | $ | name = '' , |
$ | prefix = 'Table' , |
||
$ | options = array() |
||
) |
Method to get a table object, load it if necessary.
public
string | The table name. Optional. |
string | The class prefix. Optional. |
array | Configuration array for model. Optional. |
Références $name, et JError::raiseError().
JModel::setDBO | ( | &$ | db | ) |
JModel::setState | ( | $ | property, |
$ | value = null |
||
) |
Method to set model state variables
public
string | The name of the property |
mixed | The value of the property to set |
JModel::$_db |
JModel::$_name |
JModel::$_state |