[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_content/src/Extension/ -> ContentComponent.php (summary)

(no description)

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

Defines 1 class

ContentComponent:: (12 methods):
  boot()
  validateSection()
  getContexts()
  getWorkflowContexts()
  getCategoryWorkflowContext()
  getTableNameForSection()
  getWorkflowTableBySection()
  getModelName()
  filterTransitions()
  countItems()
  countTagItems()
  prepareForm()


Class: ContentComponent  - X-Ref

Component class for com_content

boot(ContainerInterface $container)   X-Ref
Booting the extension. This is the function to set up the environment of the extension like
registering new class loaders, etc.

If required, some initial set up can be done from services of the container, eg.
registering HTML services.

param: ContainerInterface  $container  The container
return: void

validateSection($section, $item = null)   X-Ref
Returns a valid section for the given section. If it is not valid then null
is returned.

param: string  $section  The section to get the mapping for
param: object  $item     The item
return: string|null  The new section

getContexts()   X-Ref
Returns valid contexts

return: array

getWorkflowContexts()   X-Ref
Returns valid contexts

return: array

getCategoryWorkflowContext(?string $section = null)   X-Ref
Returns the workflow context based on the given category section

param: string  $section  The section
return: string|null

getTableNameForSection(string $section = null)   X-Ref
Returns the table for the count items functions for the given section.

param: string  $section  The section
return: string|null

getWorkflowTableBySection(?string $section = null)   X-Ref
Returns a table name for the state association

param: string  $section  An optional section to separate different areas in the component
return: string

getModelName($context)   X-Ref
Returns the model name, based on the context

param: string  $context  The context of the workflow
return: string

filterTransitions(array $transitions, int $pk)   X-Ref
Method to filter transitions by given id of state.

param: array  $transitions  The Transitions to filter
param: int    $pk           Id of the state
return: array

countItems(array $items, string $section)   X-Ref
Adds Count Items for Category Manager.

param: \stdClass[]  $items    The category objects
param: string       $section  The section
return: void

countTagItems(array $items, string $extension)   X-Ref
Adds Count Items for Tag Manager.

param: \stdClass[]  $items      The content objects
param: string       $extension  The name of the active view.
return: void

prepareForm(Form $form, $data)   X-Ref
Prepares the category form

param: Form          $form  The form to prepare
param: array|object  $data  The form data
return: void



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