Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ContentComponent
+ Graphe d'héritage de ContentComponent:

Fonctions membres publiques

 boot (ContainerInterface $container)
 
 validateSection ($section, $item=null)
 
 getContexts ()
 
 getWorkflowContexts ()
 
 getCategoryWorkflowContext (?string $section=null)
 
 getWorkflowTableBySection (?string $section=null)
 
 getModelName ($context)
 
 filterTransitions (array $transitions, int $pk)
 
 countItems (array $items, string $section)
 
 countTagItems (array $items, string $extension)
 
 prepareForm (Form $form, $data)
 
- Fonctions membres publiques hérités de Component
 __construct (ComponentDispatcherFactoryInterface $dispatcherFactory)
 
 getDispatcher (CMSApplicationInterface $application)
 
- Fonctions membres publiques hérités de MVCFactoryServiceInterface
 getMVCFactory ()
 
- Fonctions membres publiques hérités de CategoryServiceInterface
 getCategory (array $options=[], $section='')
 
- Fonctions membres publiques hérités de AssociationServiceInterface
 getAssociationsExtension ()
 
- Fonctions membres publiques hérités de WorkflowServiceInterface
 supportFunctionality ($functionality, $context)
 
 isWorkflowActive ($context)
 
- Fonctions membres publiques hérités de RouterServiceInterface
 createRouter (CMSApplicationInterface $application, AbstractMenu $menu)
 

Champs de données

CategoryServiceTrait::getStateColumnForSection insteadof TagServiceTrait
 
const CONDITION_NAMES
 
const CONDITION_ARCHIVED = 2
 
const CONDITION_PUBLISHED = 1
 
const CONDITION_UNPUBLISHED = 0
 
const CONDITION_TRASHED = -2
 

Fonctions membres protégées

 getTableNameForSection (string $section=null)
 

Attributs protégés

 $supportedFunctionality
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de WorkflowServiceInterface
static getConditions (string $extension)
 

Description détaillée

Component class for com_content

Depuis
4.0.0

Documentation des fonctions membres

◆ boot()

boot ( ContainerInterface  $container)

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ètres
ContainerInterface$containerThe container
Renvoie
void
Depuis
4.0.0

Implémente BootableExtensionInterface.

Références Joomla\CMS\HTML\getRegistry().

◆ countItems()

countItems ( array  $items,
string  $section 
)

Adds Count Items for Category Manager.

Paramètres

Implémente CategoryServiceInterface.

Références $config, et $items.

◆ countTagItems()

countTagItems ( array  $items,
string  $extension 
)

Adds Count Items for Tag Manager.

Paramètres

Implémente TagServiceInterface.

Références $config, $extension, $items, $parts, $section, et null.

◆ filterTransitions()

filterTransitions ( array  $transitions,
int  $pk 
)

Method to filter transitions by given id of state.

Paramètres
array$transitionsThe Transitions to filter
int$pkId of the state
Renvoie
array
Depuis
4.0.0

Implémente WorkflowServiceInterface.

Références $transitions, et ContentHelper\filterTransitions().

◆ getCategoryWorkflowContext()

getCategoryWorkflowContext ( ?string  $section = null)

Returns the workflow context based on the given category section

Paramètres
string$sectionThe section
Renvoie
string|null
Depuis
4.0.0

Implémente WorkflowServiceInterface.

Références $context.

◆ getContexts()

getContexts ( )

Returns valid contexts

Renvoie
array
Depuis
4.0.0

Implémente FieldsServiceInterface.

Références Text\_(), Factory\getLanguage(), et JPATH_ADMINISTRATOR.

◆ getModelName()

getModelName (   $context)

Returns the model name, based on the context

Paramètres
string$contextThe context of the workflow
Renvoie
string

Implémente WorkflowServiceInterface.

Références $context, $parts, elseif, et Factory\getApplication().

◆ getTableNameForSection()

getTableNameForSection ( string  $section = null)
protected

Returns the table for the count items functions for the given section.

Paramètres
string$sectionThe section
Renvoie
string|null
Depuis
4.0.0

◆ getWorkflowContexts()

getWorkflowContexts ( )

Returns valid contexts

Renvoie
array
Depuis
4.0.0

Implémente WorkflowServiceInterface.

Références Text\_(), Factory\getLanguage(), et JPATH_ADMINISTRATOR.

◆ getWorkflowTableBySection()

getWorkflowTableBySection ( ?string  $section = null)

Returns a table name for the state association

Paramètres
string$sectionAn optional section to separate different areas in the component
Renvoie
string
Depuis
4.0.0

Implémente WorkflowServiceInterface.

◆ prepareForm()

prepareForm ( Form  $form,
  $data 
)

Prepares the category form

Paramètres
Form$formThe form to prepare
array | object$dataThe form data
Renvoie
void

Implémente CategoryServiceInterface.

Références $data, $form, et ContentHelper\onPrepareForm().

◆ validateSection()

validateSection (   $section,
  $item = null 
)

Returns a valid section for the given section. If it is not valid then null is returned.

Paramètres
string$sectionThe section to get the mapping for
object$itemThe item
Renvoie
string|null The new section
Depuis
4.0.0

Implémente FieldsServiceInterface.

Références $section, Factory\getApplication(), et null.

Documentation des champs

◆ $supportedFunctionality

$supportedFunctionality
protected
Valeur initiale :
= [
'core.featured' => true

◆ CONDITION_ARCHIVED

const CONDITION_ARCHIVED = 2

◆ CONDITION_NAMES

const CONDITION_NAMES
Valeur initiale :
= [
self::CONDITION_PUBLISHED => 'JPUBLISHED'

The trashed condition

Depuis
4.0.0

◆ CONDITION_PUBLISHED

◆ CONDITION_TRASHED

const CONDITION_TRASHED = -2

The trashed condition

Depuis
4.0.0

Référencé par HtmlView\addToolbar().

◆ CONDITION_UNPUBLISHED

const CONDITION_UNPUBLISHED = 0

The unpublished condition

Depuis
4.0.0

Référencé par ArticlesModel\getListQuery(), et FeaturedModel\populateState().

◆ TagServiceTrait

CategoryServiceTrait::getStateColumnForSection insteadof TagServiceTrait

La documentation de cette classe a été générée à partir du fichier suivant :