[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_content/src/Model/ -> ArchiveModel.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: 223 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ArchiveModel:: (5 methods):
  populateState()
  getListQuery()
  getData()
  getYears()
  getSlugColumn()


Class: ArchiveModel  - X-Ref

Content Component Archive 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

getListQuery()   X-Ref
Get the master query for retrieving a list of articles subject to the model state.

return: \Joomla\Database\DatabaseQuery

getData()   X-Ref
Method to get the archived article list

return: array

getYears()   X-Ref
Gets the archived articles years

return: array

getSlugColumn($query, $id, $alias)   X-Ref
Generate column expression for slug or catslug.

param: \Joomla\Database\DatabaseQuery  $query  Current query instance.
param: string                          $id     Column id name.
param: string                          $alias  Column alias name.
return: string



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