ContentHelper
Helper for standard content style extensions.
This class mainly simplifies static helper methods often repeated in individual components
since |
3.1 |
---|
Methods
_getActions
Gets a list of the actions that can be performed.
_getActions(integer $categoryId, integer $id, string $assetName = '') : \JObject
since |
3.1 |
---|---|
deprecated |
3.2 Use ContentHelper::getActions() instead |
Arguments
- $categoryId
integer
The category ID.- $id
integer
The item ID.- $assetName
string
The asset name
Response
\JObject
countRelations
Adds Count relations for Category and Tag Managers
countRelations( &$items, \Joomla\CMS\Helper\stdClass $config) : array<mixed,\Joomla\CMS\Helper\stdClass>
since |
3.9.1 |
---|
Arguments
- $items
- $config
\Joomla\CMS\Helper\stdClass
Configuration object allowing to use a custom relations table
Response
array<mixed,\Joomla\CMS\Helper\stdClass>
getActions
Gets a list of the actions that can be performed.
getActions(string $component = '', string $section = '', integer $id) : \JObject
since |
3.2 |
---|
Arguments
- $component
string
The component name.- $section
string
The access section name.- $id
integer
The item ID.
Response
\JObject
getCurrentLanguage
Gets the current language
getCurrentLanguage(boolean $detectBrowser = true) : string
since |
3.1 |
---|---|
note |
CmsHelper::getCurrentLanguage is the preferred method |
Arguments
- $detectBrowser
boolean
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) : integer
since |
3.1 |
---|---|
note |
CmsHelper::getLanguage() is the preferred method. |
Arguments
- $langCode
string
The language code to look up
Response
integer
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.