[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_content/src/Helper/ -> QueryHelper.php (summary)

(no description)

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

Defines 1 class

QueryHelper:: (4 methods):
  orderbyPrimary()
  orderbySecondary()
  getQueryDate()
  buildVotingQuery()


Class: QueryHelper  - X-Ref

Content Component Query Helper

orderbyPrimary($orderby)   X-Ref
Translate an order code to a field for category ordering.

param: string  $orderby  The ordering code.
return: string  The SQL field(s) to order by.

orderbySecondary($orderby, $orderDate = 'created', DatabaseInterface $db = null)   X-Ref
Translate an order code to a field for article ordering.

param: string             $orderby    The ordering code.
param: string             $orderDate  The ordering code for the date.
param: DatabaseInterface  $db         The database
return: string  The SQL field(s) to order by.

getQueryDate($orderDate, DatabaseInterface $db = null)   X-Ref
Translate an order code to a field for date ordering.

param: string             $orderDate  The ordering code.
param: DatabaseInterface  $db         The database
return: string  The SQL field(s) to order by.

buildVotingQuery($params = null)   X-Ref
Get join information for the voting query.

param: \Joomla\Registry\Registry  $params  An options object for the article.
return: array  A named array with "select" and "join" keys.



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