CMSHelper
Base Helper class.
since |
3.2 |
---|---|
package |
Joomla CMS |
Methods
getCurrentLanguage
Gets the current language
getCurrentLanguage( detectBrowser = true) :
since |
3.2 |
---|
Arguments
- detectBrowser
bool
Flag indicating whether to use the browser language as a fallback.
Response
string
The 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
TableInterface
Table object.
Response
stdClass
Contains all of the columns and values.
getLanguageId
Gets the associated language ID
getLanguageId( langCode) :
since |
3.2 |
---|
Arguments
- langCode
string
The language code to look up
Response
int
The 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
TableInterface
Table instance for a row.
Response
array<string|int, mixed>
Associative array of all columns and values for a row in a table.