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