ContentHelper
Helper for standard content style extensions.
This class mainly simplifies static helper methods often repeated in individual components
| since |
3.1 |
|---|---|
| package |
Joomla CMS |
Methods
countRelations
Adds Count relations for Category and Tag Managers
countRelations(\stdClass||string|int &items, \stdClass config) : \stdClass||string|int
| since |
3.9.1 |
|---|
Arguments
- items
array<string|int, stdClass>The category or tag objects- config
stdClassConfiguration object allowing to use a custom relations table
Response
array<string|int, stdClass>
getActions
Gets a list of the actions that can be performed.
getActions( component = '', section = '', id) : \Joomla\CMS\Object\CMSObject
| since |
3.2 |
|---|
Arguments
- component
stringThe component name.- section
stringThe access section name.- id
intThe item ID.
Response
getCurrentLanguage
Gets the current language
getCurrentLanguage( detectBrowser = true) :
| since |
3.1 |
|---|---|
| note |
CmsHelper::getCurrentLanguage is the preferred method |
Arguments
- detectBrowser
boolFlag indicating whether to use the browser language as a fallback.
Response
stringThe language string
getLanguageId
Gets the associated language ID
getLanguageId( langCode) :
| since |
3.1 |
|---|---|
| note |
CmsHelper::getLanguage() is the preferred method. |
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\Table table) : mixed||string|int
| since |
3.1 |
|---|
Arguments
- table
TableTable instance for a row.
Response
array<string|int, mixed>Associative array of all columns and values for a row in a table.