ContentHelper

Helper for standard content style extensions.

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

since

3.1

Methods

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, \stdClass $config) : array<mixed,\stdClass>
static
since

3.9.1

Arguments

$items

$config

\stdClassConfiguration object allowing to use a custom relations table

Response

array<mixed,\stdClass>

getActions

Gets a list of the actions that can be performed.

getActions(string $component = '', string $section = '', integer $id) : \Joomla\CMS\Object\CMSObject
static
since

3.2

Arguments

$component

stringThe component name.

$section

stringThe access section name.

$id

integerThe item ID.

Response

\Joomla\CMS\Object\CMSObject

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.