CMSHelper

Base Helper class.

since

3.2

package

Application

Methods

getCurrentLanguage

Gets the current language

getCurrentLanguage(bool detectBrowser = true) : string
since

3.2

Arguments

detectBrowser

boolFlag 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) : int
since

3.2

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