Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence de la classe ContentModelFeatured
+ Graphe d'héritage de ContentModelFeatured:

Fonctions membres publiques

 __construct ($config=array())
 
 getItems ()
 
- Fonctions membres publiques hérités de ContentModelArticles
 __construct ($config=array())
 
 getAuthors ()
 
 __construct ($config=array())
 
 getItems ()
 
 getStart ()
 
 countItemsByMonth ()
 

Champs de données

 $_context = 'com_content.frontpage'
 

Fonctions membres protégées

 getListQuery ()
 
 populateState ($ordering='a.title', $direction='asc')
 
 populateState ($ordering=null, $direction=null)
 
 getStoreId ($id='')
 
 getListQuery ()
 
- Fonctions membres protégées hérités de ContentModelArticles
 populateState ($ordering='a.id', $direction='desc')
 
 getStoreId ($id='')
 
 getListQuery ()
 
 populateState ($ordering='ordering', $direction='ASC')
 
 getStoreId ($id='')
 
 getListQuery ()
 

Description détaillée

Methods supporting a list of featured article records.

Depuis
1.6

Frontpage Component Model

Depuis
1.5

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.
Voir également
JControllerLegacy
Depuis
1.6

Références $config.

Documentation des fonctions membres

◆ getItems()

getItems ( )

Method to get a list of articles.

Renvoie
mixed An array of objects on success, false on failure.

Références $limit, et $params.

◆ getListQuery() [1/2]

getListQuery ( )
protected

Build an SQL query to load the list data.

Renvoie
JDatabaseQuery
Depuis
1.6

Références $db, $groups, $language, $published, $query, $type, $user, et elseif.

◆ getListQuery() [2/2]

getListQuery ( )
protected

Get the list of items.

Renvoie
JDatabaseQuery

Références $query.

◆ getStoreId()

getStoreId (   $id = '')
protected

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.

Paramètres
string$idA prefix for the store id.
Renvoie
string A store id.

Références $id.

◆ populateState() [1/2]

populateState (   $ordering = null,
  $direction = null 
)
protected

Method to auto-populate the model state.

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

Paramètres
string$orderingThe field to order on.
string$directionThe direction to order on.
Renvoie
void
Depuis
1.6

Références $app, $direction, $input, $limit, $menu, $ordering, $params, $user, Registry\loadString(), ContentHelperQuery\orderbyPrimary(), et ContentHelperQuery\orderbySecondary().

◆ populateState() [2/2]

populateState (   $ordering = 'a.title',
  $direction = 'asc' 
)
protected

Method to auto-populate the model state.

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

Paramètres
string$orderingAn optional ordering field.
string$directionAn optional direction (asc|desc).
Renvoie
void
Depuis
3.5

Références $direction, et $ordering.

Documentation des champs

◆ $_context

$_context = 'com_content.frontpage'

La documentation de cette classe a été générée à partir du fichier suivant :