Class NewsfeedsModelNewsfeed

Description

Newsfeeds Component Newsfeed Model

  • since: 1.5

Located in /components/com_newsfeeds/models/newsfeed.php (line 19)

JObject
   |
   --JModelLegacy
      |
      --JModelItem
         |
         --NewsfeedsModelNewsfeed
Variable Summary
 string $_context
Method Summary
 mixed &getItem ([integer $pk = null])
 boolean hit ([int $pk = 0])
 void populateState ()
Variables
string $_context = 'com_newsfeeds.newsfeed' (line 27)

Model context string.

  • since: 1.6
  • access: protected

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

Inherited Variables

Inherited from JModelItem

JModelItem::$_item

Inherited from JModelLegacy

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

Inherited from JObject

JObject::$_errors
Methods
getItem (line 67)

Method to get newsfeed data.

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

Increment the hit counter for the newsfeed.

  • return: True if successful; false otherwise and internal error set.
  • since: 3.0
  • access: public
boolean hit ([int $pk = 0])
  • int $pk: Optional primary key of the item 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:
JModelLegacy::populateState()
Method to auto-populate the model state.

Inherited Methods

Inherited From JModelItem

 JModelItem::getStoreId()

Inherited From JModelLegacy

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

Inherited From JObject

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

Documentation generated on Tue, 19 Nov 2013 15:09:29 +0100 by phpDocumentor 1.4.3