CMSHelper
Base Helper class.
| since |
3.2 |
|---|---|
| package |
Joomla CMS |
Methods
getCurrentLanguage
Gets the current language
getCurrentLanguage( detectBrowser = true) :
| 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
TableInterfaceTable object.
Response
stdClassContains all of the columns and values.
getLanguageId
Gets the associated language ID
getLanguageId( langCode) :
| 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) : mixed||string|int
| since |
3.2 |
|---|
Arguments
- table
TableInterfaceTable instance for a row.
Response
array<string|int, mixed>Associative array of all columns and values for a row in a table.