CMSHelper

Base Helper class.

since

3.2

Methods

getCurrentLanguage

Gets the current language

getCurrentLanguage(boolean $detectBrowser = true) : string
since

3.2

Arguments

$detectBrowser

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

Response

stringThe language string

getDataObject

Method to get an object containing all of the table columns and values.

getDataObject(\Joomla\CMS\Table\TableInterface $table) : \stdClass
since

3.2

Arguments

$table

\Joomla\CMS\Table\TableInterfaceTable object.

Response

\stdClassContains all of the columns and values.

getLanguageId

Gets the associated language ID

getLanguageId(string $langCode) : integer
since

3.2

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\TableInterface $table) : array
since

3.2

Arguments

$table

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

Response

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