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
stdClass
Configuration 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
string
The component name.- section
string
The access section name.- id
int
The item ID.
Response
getCurrentLanguage
Gets the current language
getCurrentLanguage( detectBrowser = true) :
since |
3.1 |
---|---|
note |
CmsHelper::getCurrentLanguage is the preferred method |
Arguments
- detectBrowser
bool
Flag indicating whether to use the browser language as a fallback.
Response
string
The language string
getLanguageId
Gets the associated language ID
getLanguageId( langCode) :
since |
3.1 |
---|---|
note |
CmsHelper::getLanguage() is the preferred method. |
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\Table table) : mixed||string|int
since |
3.1 |
---|
Arguments
- table
Table
Table instance for a row.
Response
array<string|int, mixed>
Associative array of all columns and values for a row in a table.