Class ContentModelFeatured

Description

Frontpage Component Model

  • since: 1.5

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

JObject
   |
   --JModel
      |
      --JModelList
         |
         --ContentModelArticles
            |
            --ContentModelFeatured
Variable Summary
string $_context
Method Summary
mixed getItems ()
string getStoreId ([string $id = ''])
void populateState ([ $ordering = null], [ $direction = null])
Variables
string $_context = 'com_content.frontpage' (line 28)

Model context string.

  • access: public

Inherited Variables

Inherited from JModelList

JModelList::$cache
JModelList::$context
JModelList::$filter_fields
JModelList::$query

Inherited from JModel

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

Inherited from JObject

JObject::$_errors
Methods
getItems (line 73)

Method to get a list of articles.

  • return: An array of objects on success, false on failure.
  • access: public
mixed getItems ()

Redefinition of:
ContentModelArticles::getItems()
Method to get a list of articles.
getListQuery (line 108)
JDatabaseQuery getListQuery ()

Redefinition of:
ContentModelArticles::getListQuery()
Get the master query for retrieving a list of articles subject to the model state.
getStoreId (line 97)

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.

  • return: A store id.
  • access: protected
string getStoreId ([string $id = ''])
  • string $id: A prefix for the store id.

Redefinition of:
ContentModelArticles::getStoreId()
Method to get a store id based on model configuration state.
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 ([ $ordering = null], [ $direction = null])
  • $ordering
  • $direction

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

Inherited Methods

Inherited From ContentModelArticles

ContentModelArticles::__construct()
ContentModelArticles::getItems()
ContentModelArticles::getListQuery()
ContentModelArticles::getStart()
ContentModelArticles::getStoreId()
ContentModelArticles::populateState()

Inherited From JModelList

JModelList::__construct()
JModelList::getItems()
JModelList::getListQuery()
JModelList::getPagination()
JModelList::getStart()
JModelList::getStoreId()
JModelList::getTotal()
JModelList::getUserStateFromRequest()
JModelList::populateState()
JModelList::_getListQuery()

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:54:38 -0500 by phpDocumentor 1.4.4