![]() |
Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
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) | |
![]() | |
__construct (ComponentDispatcherFactoryInterface $dispatcherFactory) | |
getDispatcher (CMSApplicationInterface $application) | |
![]() | |
getMVCFactory () | |
![]() | |
getCategory (array $options=[], $section='') | |
![]() | |
getAssociationsExtension () | |
![]() | |
supportFunctionality ($functionality, $context) | |
isWorkflowActive ($context) | |
![]() | |
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 | |
![]() | |
static | getConditions (string $extension) |
Component class for com_content
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.
ContainerInterface | $container | The container |
Implémente BootableExtensionInterface.
Références Joomla\CMS\HTML\getRegistry().
countItems | ( | array | $items, |
string | $section | ||
) |
countTagItems | ( | array | $items, |
string | $extension | ||
) |
Adds Count Items for Tag Manager.
Implémente TagServiceInterface.
Références $config, $extension, $items, $parts, $section, et null.
filterTransitions | ( | array | $transitions, |
int | $pk | ||
) |
Method to filter transitions by given id of state.
array | $transitions | The Transitions to filter |
int | $pk | Id of the state |
Implémente WorkflowServiceInterface.
Références $transitions, et ContentHelper\filterTransitions().
getCategoryWorkflowContext | ( | ?string | $section = null | ) |
Returns the workflow context based on the given category section
string | $section | The section |
Implémente WorkflowServiceInterface.
Références $context.
getContexts | ( | ) |
Returns valid contexts
Implémente FieldsServiceInterface.
Références Text\_(), Factory\getLanguage(), et JPATH_ADMINISTRATOR.
getModelName | ( | $context | ) |
Returns the model name, based on the context
string | $context | The context of the workflow |
Implémente WorkflowServiceInterface.
Références $context, $parts, elseif, et Factory\getApplication().
|
protected |
Returns the table for the count items functions for the given section.
string | $section | The section |
getWorkflowContexts | ( | ) |
Returns valid contexts
Implémente WorkflowServiceInterface.
Références Text\_(), Factory\getLanguage(), et JPATH_ADMINISTRATOR.
getWorkflowTableBySection | ( | ?string | $section = null | ) |
Returns a table name for the state association
string | $section | An optional section to separate different areas in the component |
Implémente WorkflowServiceInterface.
prepareForm | ( | Form | $form, |
$data | |||
) |
Prepares the category form
Form | $form | The form to prepare |
array | object | $data | The form data |
Implémente CategoryServiceInterface.
Références $data, $form, et ContentHelper\onPrepareForm().
validateSection | ( | $section, | |
$item = null |
|||
) |
Returns a valid section for the given section. If it is not valid then null is returned.
string | $section | The section to get the mapping for |
object | $item | The item |
Implémente FieldsServiceInterface.
Références $section, Factory\getApplication(), et null.
|
protected |
const CONDITION_ARCHIVED = 2 |
The archived condition
Référencé par ArticlesArchiveHelper\getList(), ArchiveModel\getYears(), ArchiveModel\populateState(), et ArticleModel\populateState().
const CONDITION_NAMES |
The trashed condition
const CONDITION_PUBLISHED = 1 |
The published condition
Référencé par StatsHelper\getList(), ArticlesPopularHelper\getList(), ArticlesCategoryHelper\getList(), ArticlesModel\getListQuery(), FeaturedModel\populateState(), ArticleModel\populateState(), et ArticlesModel\populateState().
const CONDITION_TRASHED = -2 |
const CONDITION_UNPUBLISHED = 0 |
The unpublished condition
Référencé par ArticlesModel\getListQuery(), et FeaturedModel\populateState().
CategoryServiceTrait::getStateColumnForSection insteadof TagServiceTrait |