Back to Joomla project (class list)

Class ContentHelper - list of methods

Helper for standard content style extensions.
This class mainly simplifies static helper methods often repeated in individual components
Package: Joomla\CMS\Helper
Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Helper/ContentHelper.php
Project: Joomla

Method Summary

public static void
(mixed $vName)

Configure the Linkbar. Must be implemented by each extension.
Parameters
  • string $vName The name of the active view.
Returns
  • void
Since
  • 3.1
Show source code of this method: addSubmenu Source Code

public static \stdClass[]
(mixed &$items, mixed $config)

Adds Count relations for Category and Tag Managers
Parameters
  • \stdClass[] & $items The category or tag objects
  • \stdClass $config Configuration object allowing to use a custom relations table
Returns
  • \stdClass[]
Since
  • 3.9.1
Show source code of this method: countRelations Source Code

public static \Joomla\CMS\Object\CMSObject
(mixed $component = '', mixed $section = '', mixed $id = 0)

Gets a list of the actions that can be performed.
Parameters
  • string $component The component name.
  • string $section The access section name.
  • int $id The item ID.
Returns
  • \Joomla\CMS\Object\CMSObject
Since
  • 3.2
Show source code of this method: getActions Source Code

public static string
(mixed $detectBrowser = true)

Gets the current language
Parameters
  • bool $detectBrowser Flag indicating whether to use the browser language as a fallback.
Returns
  • string The language string
Since
  • 3.1
-
  • CmsHelper::getCurrentLanguage is the preferred method
Show source code of this method: getCurrentLanguage Source Code

public static int
(mixed $langCode)

Gets the associated language ID
Parameters
  • string $langCode The language code to look up
Returns
  • int The language ID
Since
  • 3.1
-
  • CmsHelper::getLanguage() is the preferred method.
Show source code of this method: getLanguageId Source Code

public array
(\Joomla\CMS\Table\Table $table)

Gets a row of data from a table
Parameters
  • \Joomla\CMS\Table\Table $table Table instance for a row.
Returns
  • array Associative array of all columns and values for a row in a table.
Since
  • 3.1
Show source code of this method: getRowData Source Code

Tags Summary

Since
3.1