[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_content/src/Model/ -> FeaturedModel.php (summary)

(no description)

Copyright: (C) 2006 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 168 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FeaturedModel:: (4 methods):
  populateState()
  getItems()
  getStoreId()
  getListQuery()


Class: FeaturedModel  - X-Ref

Frontpage Component Model

populateState($ordering = null, $direction = null)   X-Ref
Method to auto-populate the model state.

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

param: string  $ordering   The field to order on.
param: string  $direction  The direction to order on.
return: void

getItems()   X-Ref
Method to get a list of articles.

return: mixed  An array of objects on success, false on failure.

getStoreId($id = '')   X-Ref
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: string  $id  A prefix for the store id.
return: string  A store id.

getListQuery()   X-Ref
Get the list of items.

return: \Joomla\Database\DatabaseQuery



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer