ContentHelper

Helper for standard content style extensions.

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

since

3.1

Methods

_getActions

Gets a list of the actions that can be performed.

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

3.1

deprecated

3.2 Use ContentHelper::getActions() instead

Arguments

$categoryId

integerThe category ID.

$id

integerThe 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( &$items, \Joomla\CMS\Helper\stdClass $config) : array<mixed,\Joomla\CMS\Helper\stdClass>
static
since

3.9.1

Arguments

$items

$config

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

Response

array<mixed,\Joomla\CMS\Helper\stdClass>

getActions

Gets a list of the actions that can be performed.

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

3.2

Arguments

$component

stringThe component name.

$section

stringThe access section name.

$id

integerThe item ID.

Response

\JObject

getCurrentLanguage

Gets the current language

getCurrentLanguage(boolean $detectBrowser = true) : string
static
since

3.1

note

CmsHelper::getCurrentLanguage is the preferred method

Arguments

$detectBrowser

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

Response

stringThe language string

getLanguageId

Gets the associated language ID

getLanguageId(string $langCode) : integer
static
since

3.1

note

CmsHelper::getLanguage() is the preferred method.

Arguments

$langCode

stringThe language code to look up

Response

integerThe 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.