ContentHelper

Helper for standard content style extensions.

This class mainly simplifies static helper methods often repeated in individual components

since

3.1

package

Joomla CMS

Methods

_getActions

Gets a list of the actions that can be performed.

_getActions(int categoryId, int id, string assetName = '') : \JObject
static deprecated
since

3.1

deprecated

3.2 Use ContentHelper::getActions() instead

Arguments

categoryId

intThe category ID.

id

intThe item ID.

assetName

stringThe asset name

Response

\JObject

addSubmenu

Configure the Linkbar. Must be implemented by each extension.

addSubmenu(string vName) : void
static
since

3.1

Arguments

vName

stringThe name of the active view.

countRelations

Adds Count relations for Category and Tag Managers

countRelations(\Joomla\CMS\Helper\stdClass[] &items, \Joomla\CMS\Helper\stdClass config) : \Joomla\CMS\Helper\stdClass[]
static
since

3.9.1

Arguments

items

\Joomla\CMS\Helper\stdClass[]The category or tag objects

config

\Joomla\CMS\Helper\stdClassConfiguration object allowing to use a custom relations table

Response

\Joomla\CMS\Helper\stdClass[]

getActions

Gets a list of the actions that can be performed.

getActions(string component = '', string section = '', int id) : \JObject
static
since

3.2

Arguments

component

stringThe component name.

section

stringThe access section name.

id

intThe item ID.

Response

\JObject

getCurrentLanguage

Gets the current language

getCurrentLanguage(bool detectBrowser = true) : string
static
since

3.1

note

CmsHelper::getCurrentLanguage is the preferred method

Arguments

detectBrowser

boolFlag indicating whether to use the browser language as a fallback.

Response

stringThe language string

getLanguageId

Gets the associated language ID

getLanguageId(string langCode) : int
static
since

3.1

note

CmsHelper::getLanguage() is the preferred method.

Arguments

langCode

stringThe language code to look up

Response

intThe language ID

getRowData

Gets a row of data from a table

getRowData(\Joomla\CMS\Table\Table table) : array
since

3.1

Arguments

table

\Joomla\CMS\Table\TableTable instance for a row.

Response

arrayAssociative array of all columns and values for a row in a table.