Class ContentHelperQuery

Description

Content Component Query Helper

  • since: 1.5

Located in /components/com_content/helpers/query.php (line 20)


	
			
Method Summary
static array buildVotingQuery ([ $params = null], JRegistry $param)
static string getQueryDate (string $orderDate)
static string orderbyPrimary (string $orderby)
static string orderbySecondary (string $orderby, [string $orderDate = 'created'])
static array orderDownColumns ( &$articles, [integer $numColumns = 1], array $articles)
Methods
static method buildVotingQuery (line 155)

Get join information for the voting query.

  • return: A named array with "select" and "join" keys.
  • since: 1.5
  • access: public
static array buildVotingQuery ([ $params = null], JRegistry $param)
  • JRegistry $param: An options object for the article.
  • $params
static method getQueryDate (line 125)

Translate an order code to a field for primary category ordering.

  • return: The SQL field(s) to order by.
  • since: 1.6
  • access: public
static string getQueryDate (string $orderDate)
  • string $orderDate: The ordering code.
static method orderbyPrimary (line 30)

Translate an order code to a field for primary category ordering.

  • return: The SQL field(s) to order by.
  • since: 1.5
  • access: public
static string orderbyPrimary (string $orderby)
  • string $orderby: The ordering code.
static method orderbySecondary (line 63)

Translate an order code to a field for secondary category ordering.

  • return: The SQL field(s) to order by.
  • since: 1.5
  • access: public
static string orderbySecondary (string $orderby, [string $orderDate = 'created'])
  • string $orderby: The ordering code.
  • string $orderDate: The ordering code for the date.
static method orderDownColumns (line 192)

Method to order the intro articles array for ordering down the columns instead of across.

The layout always lays the introtext articles out across columns. Array is reordered so that, when articles are displayed in index order across columns in the layout, the result is that the desired article ordering is achieved down the columns.

  • return: Reordered array to achieve desired ordering down columns
  • since: 1.6
  • access: public
static array orderDownColumns ( &$articles, [integer $numColumns = 1], array $articles)
  • array $articles: Array of intro text articles
  • integer $numColumns: Number of columns in the layout
  • &$articles

Documentation generated on Mon, 25 Jun 2012 13:58:59 -0500 by phpDocumentor 1.4.4