[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Helper/ -> ContentHelper.php (summary)

Joomla! Content Management System

Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 271 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ContentHelper:: (6 methods):
  addSubmenu()
  countRelations()
  getActions()
  getCurrentLanguage()
  getLanguageId()
  getRowData()


Class: ContentHelper  - X-Ref

Helper for standard content style extensions.
This class mainly simplifies static helper methods often repeated in individual components

addSubmenu($vName)   X-Ref
Configure the Linkbar. Must be implemented by each extension.

param: string  $vName  The name of the active view.
return: void

countRelations(&$items, $config)   X-Ref
Adds Count relations for Category and Tag Managers

param: \stdClass[]  &$items  The category or tag objects
param: \stdClass    $config  Configuration object allowing to use a custom relations table
return: \stdClass[]

getActions($component = '', $section = '', $id = 0)   X-Ref
Gets a list of the actions that can be performed.

param: string   $component  The component name.
param: string   $section    The access section name.
param: integer  $id         The item ID.
return: CMSObject

getCurrentLanguage($detectBrowser = true)   X-Ref
Gets the current language

param: boolean  $detectBrowser  Flag indicating whether to use the browser language as a fallback.
return: string  The language string

getLanguageId($langCode)   X-Ref
Gets the associated language ID

param: string  $langCode  The language code to look up
return: integer  The language ID

getRowData(Table $table)   X-Ref
Gets a row of data from a table

param: Table  $table  Table instance for a row.
return: array  Associative array of all columns and values for a row in a table.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer