Class ContentModelArticle

Description

Content Component Article Model

  • since: 1.5

Located in /components/com_content/models/article.php (line 21)

JObject
   |
   --JModel
      |
      --JModelItem
         |
         --ContentModelArticle
Direct descendents
Class Description
ContentModelForm Content Component Article Model
Variable Summary
string $_context
Method Summary
mixed &getItem ([integer $pk = null])
boolean hit ([int $pk = 0])
void populateState ()
void storeVote ([ $pk = 0], [ $rate = 0])
Variables
string $_context = 'com_content.article' (line 28)

Model context string.

  • access: protected

Redefinition of:
JModelItem::$_context
Model context string.

Inherited Variables

Inherited from JModelItem

JModelItem::$_item

Inherited from JModel

JModel::$event_clean_cache
JModel::$name
JModel::$option
JModel::$state
JModel::$_db
JModel::$__state_set

Inherited from JObject

JObject::$_errors
Methods
getItem (line 67)

Method to get article data.

  • return: Menu item data object on success, false on failure.
  • access: public
mixed &getItem ([integer $pk = null])
  • integer $pk: The id of the article.

Redefined in descendants as:
hit (line 241)

Increment the hit counter for the article.

  • return: True if successful; false otherwise and internal error set.
  • access: public
boolean hit ([int $pk = 0])
  • int $pk: Optional primary key of the article to increment.
populateState (line 37)

Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

  • since: 1.6
  • access: protected
void populateState ()

Redefinition of:
JModel::populateState()
Method to auto-populate the model state.

Redefined in descendants as:
storeVote (line 266)
  • access: public
void storeVote ([ $pk = 0], [ $rate = 0])
  • $pk
  • $rate

Inherited Methods

Inherited From JModelItem

JModelItem::getStoreId()

Inherited From JModel

JModel::__construct()
JModel::addIncludePath()
JModel::addTablePath()
JModel::cleanCache()
JModel::getDbo()
JModel::getInstance()
JModel::getName()
JModel::getState()
JModel::getTable()
JModel::populateState()
JModel::setDbo()
JModel::setState()
JModel::_createFileName()
JModel::_createTable()
JModel::_getList()
JModel::_getListCount()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:52:18 -0500 by phpDocumentor 1.4.4