Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Structures de données | |
class | Categories |
class | CategoryFactory |
interface | CategoryFactoryInterface |
interface | CategoryInterface |
class | CategoryNode |
interface | CategoryServiceInterface |
class | SectionNotFoundException |
Fonctions | |
getCategory (array $options=[], $section='') | |
setCategoryFactory (CategoryFactoryInterface $categoryFactory) | |
countItems (array $items, string $section) | |
prepareForm (Form $form, $data) | |
getTableNameForSection (string $section=null) | |
getStateColumnForSection (string $section=null) | |
Variables | |
trait | CategoryServiceTrait |
Joomla! Content Management System
Joomla! Content Management System
Joomla! Content Management System
Joomla\CMS\Categories\countItems | ( | array | $items, |
string | $section | ||
) |
Adds Count Items for Category Manager.
Références $config, $items, ContentHelper\countRelations(), Joomla\CMS\Categories\getStateColumnForSection(), et Joomla\CMS\Categories\getTableNameForSection().
Référencé par LegacyComponent\countItems(), WorkflowsModel\getItems(), TagsModel\getItems(), et CategoriesModel\getItems().
Joomla\CMS\Categories\getCategory | ( | array | $options = [] , |
$section = '' |
|||
) |
Returns the category service.
array | $options | The options |
string | $section | The section |
SectionNotFoundException |
Références $options, et $section.
Référencé par CategoryModel\getChildren(), CategoryModel\getItems(), CategoryModel\getLeftSibling(), CategoryModel\getParent(), et CategoryModel\getRightSibling().
|
protected |
Returns the state column for the count items functions for the given section.
string | $section | The section |
Référencé par Joomla\CMS\Categories\countItems().
|
protected |
Returns the table for the count items functions for the given section.
string | $section | The section |
Références null.
Référencé par Joomla\CMS\Categories\countItems().
Joomla\CMS\Categories\prepareForm | ( | Form | $form, |
$data | |||
) |
Prepares the category form
Form | $form | The form to change |
array | object | $data | The form data |
Référencé par PlgSystemFields\onContentPrepareForm().
Joomla\CMS\Categories\setCategoryFactory | ( | CategoryFactoryInterface | $categoryFactory | ) |
Sets the internal category factory.
CategoryFactoryInterface | $categoryFactory | The categories factory |
trait CategoryServiceTrait |
Trait for component categories service.