Документация по Joomla 1.7

Joomla.Platform\JModelItem
libraries/joomla/application/component/modelitem.php at line 21

Class JModelItem

JObject
└─JModel
└─JModelItem
All Known Subclasses:
Joomla.Site\ContentModelArticle Joomla.Site\NewsfeedsModelNewsfeed Joomla.Site\WeblinksModelWeblink

public abstract class JModelItem
extends JModel

Prototype item model.

Subpackage:
Application
Since:
11.1

Field Summary
protected string

$_context

Model context string.

protected array

$_item

An item.

Fields inherited from Joomla.Platform\JModel
__state_set, _db, event_clean_cache, name, option, state
Fields inherited from Joomla.Platform\JObject
_errors
Method Summary
protected string

getStoreId(string context, str id)

Method to get a store id based on model configuration state.

Methods inherited from Joomla.Platform\JModel
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState
Methods inherited from Joomla.Platform\JObject
__construct, __toString, def, get, getError, getErrors, getProperties, set, setError, setProperties, toString

Field Detail

libraries/joomla/application/component/modelitem.php at line 37

_context

protected string $_context = 'group.type'

Model context string.

Since:
11.1

libraries/joomla/application/component/modelitem.php at line 29

_item

protected array $_item = null

An item.

Since:
11.1

Method Detail

libraries/joomla/application/component/modelitem.php at line 52

getStoreId

protected string getStoreId(string context, str id)

Method to get a store id based on model configuration state.

This is necessary because the model is used by the component and different modules that might need different sets of data or different ordering requirements.

Parameters:
context - A prefix for the store id.
Returns:
A store id.
Since:
11.1

Документация по Joomla 1.7