Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | extract ($contextString, $item=null) |
static | getFields ( $context, $item=null, $prepareValue=false, array $valuesToOverride=null, bool $includeSubformFields=false) |
static | render ($context, $layoutFile, $displayData) |
static | canEditFieldValue ($field) |
static | displayFieldOnForm ($field) |
static | getAssignedCategoriesIds ($fieldId) |
static | getAssignedCategoriesTitles ($fieldId) |
static | getFieldsPluginId () |
static | getFieldTypes () |
static | clearFieldsCache () |
Attributs privés statiques | |
static | $fieldsCache = null |
static | $fieldCache = null |
|
static |
Return a boolean if the actual logged in user can edit the given field value.
\stdClass | $field | The field |
Références $field, $parts, et Factory\getUser().
Référencé par FieldsPlugin\onCustomFieldsPrepareDom(), et FieldModel\setFieldValue().
|
static |
Clears the internal cache for the custom fields.
Références null.
Référencé par FieldModel\save(), et FieldModel\setFieldValue().
|
static |
Return a boolean based on field (and field group) display / show_on settings
\stdClass | $field | The field |
Références $app, $field, elseif, et Factory\getApplication().
Référencé par FieldsPlugin\onCustomFieldsPrepareDom().
|
static |
Extracts the component and section from the context string which has to be in the format component.context.
string | $contextString | contextString |
object | $item | optional item object |
Références $component, $item, $parts, Factory\getApplication(), et null.
Référencé par GroupController\__construct(), FieldController\__construct(), HtmlView\addToolbar(), FieldModel\canDelete(), FieldModel\canEditState(), Dispatcher\checkAccess(), PrivacyPlugin\createCustomFieldsDomain(), HtmlView\display(), PlgSystemFields\display(), FieldModel\getForm(), FieldsModel\getListQuery(), PlgSystemFields\onContentNormaliseRequestData(), PlgSystemFields\onContentPrepare(), PlgSystemFields\onContentPrepareForm(), FieldsModel\populateState(), FieldModel\populateState(), PlgContentFields\prepare(), et GroupModel\preprocessForm().
|
static |
|
static |
Gets assigned categories titles for a field
Références $db, $query, Factory\getDbo(), et ParameterType\INTEGER.
|
static |
Returns the fields for the given context. If the item is an object the returned fields do have an additional field "value" which represents the value for the given item. If the item has an assigned_cat_ids field, then additionally fields which belong to that category will be returned. Should the value being prepared to be shown in an HTML context then prepareValue must be set to true. No further escaping needs to be done. The values of the fields can be overridden by an associative array where the keys have to be a name and its corresponding value.
string | $context | The context of the content passed to the helper |
null | $item | The item being edited in the form |
int | bool | $prepareValue | (if int is display event): 1 - AfterTitle, 2 - BeforeDisplay, 3 - AfterDisplay, 0 - OFF |
array | null | $valuesToOverride | The values to override |
bool | $includeSubformFields | Should I include fields marked as Only Use In Subform? |
Références $context, $field, $fields, $item, $key, $value, elseif, Factory\getApplication(), PluginHelper\importPlugin(), Multilanguage\isEnabled(), et null.
Référencé par ContactController\_sendEmail(), ArticleModel\batchMove(), ArticleModel\cleanupPostBatchCopy(), PrivacyPlugin\createCustomFieldsDomain(), PlgSystemFields\display(), JsonapiView\displayItem(), JsonapiView\displayList(), SubfieldsField\getOptions(), PlgFieldsSubform\getSubfieldsFromField(), PlgSystemFields\onContentPrepare(), PlgContentFields\prepare(), JsonapiView\prepareItem(), UsersController\preprocessSaveData(), ContactController\preprocessSaveData(), et ArticlesController\preprocessSaveData().
|
static |
Gets the fields system plugin extension id.
Références $db, $query, $result, Factory\getApplication(), et Factory\getDbo().
Référencé par HtmlView\display().
|
static |
Loads the fields plugins and returns an array of field types from the plugins.
The returned array contains arrays with the following keys:
Références $data, $fields, Factory\getApplication(), PluginHelper\importPlugin(), et null.
Référencé par FieldModel\checkDefaultValue(), et TypeField\getOptions().
|
static |
Renders the layout file and data on the context and does a fall back to Fields afterwards.
string | $context | The context of the content passed to the helper |
string | $layoutFile | layoutFile |
array | $displayData | displayData |
Références $context, $displayData, $parts, $value, null, et LayoutHelper\render().
Référencé par ContactController\_sendEmail(), PlgSystemFields\display(), et PlgContentFields\prepare().
|
staticprivate |
|
staticprivate |