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[] &items, \stdClass config) : \stdClass[]
since |
3.9.1 |
---|
Arguments
- items
\stdClass[]
The category or tag objects- config
\stdClass
Configuration object allowing to use a custom relations table
Response
\stdClass[]
getActions
Gets a list of the actions that can be performed.
getActions(string component = '', string section = '', int 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
\Joomla\CMS\Object\CMSObject
getCurrentLanguage
Gets the current language
getCurrentLanguage(bool detectBrowser = true) : string
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(string langCode) : int
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) : array
since |
3.1 |
---|
Arguments
- table
\Joomla\CMS\Table\Table
Table instance for a row.
Response
array
Associative array of all columns and values for a row in a table.