Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | getAssociations ( $extension, $tablename, $context, $id, $pk='id', $aliasField='alias', $catField='catid', $advClause=array()) |
static | isEnabled () |
Utility class for associations in multilang
|
static |
Get the associations.
string | $extension | The name of the component. |
string | $tablename | The name of the table. |
string | $context | The context |
integer | $id | The primary key value. |
string | $pk | The name of the primary key in the given $table. |
string | $aliasField | If the table has an alias field set it here. Null to not use it |
string | $catField | If the table has a catid field set it here. Null to not use it |
array | $advClause | Additional advanced 'where' clause; use c as parent column key, c2 as associations column key |
Références $context, $db, $extension, $id, $item, $items, $query, Factory\getDbo(), et ParameterType\INTEGER.
Référencé par AdministratorService\association(), AjaxController\fetchAssociations(), ConsentBoxField\getAssignedArticleUrl(), ConsentBoxField\getAssignedMenuItemUrl(), CategoriesHelper\getAssociations(), AssociationHelper\getAssociations(), AssociationsHelper\getAssociations(), MenusHelper\getAssociations(), FormModel\getForm(), ContactModel\getItem(), NewsfeedModel\getItem(), ArticleModel\getItem(), TosField\getLabel(), TermsField\getLayoutData(), et FormModel\save().
|
static |
Method to determine if the language filter Associations parameter is enabled. This works for both site and administrator.
Références $enabled, $params, PluginHelper\getPlugin(), et Multilanguage\isEnabled().
Référencé par ContactsModel\__construct(), NewsfeedsModel\__construct(), ItemsModel\__construct(), ArticlesModel\__construct(), CategoriesModel\__construct(), HtmlView\addToolbar(), AdminModel\delete(), HtmlView\display(), ConsentBoxField\getAssignedArticleUrl(), ConsentBoxField\getAssignedMenuItemUrl(), CategoriesModel\getAssoc(), CategoryModel\getAssoc(), FormModel\getForm(), ContactModel\getItem(), NewsfeedModel\getItem(), ArticleModel\getItem(), ItemModel\getItem(), ArticlesModel\getItems(), TosField\getLabel(), TermsField\getLayoutData(), LanguagesHelper\getList(), ContactsModel\getListQuery(), NewsfeedsModel\getListQuery(), ArticlesModel\getListQuery(), ItemsModel\getListQuery(), ListField\getOptions(), Menu\preprocess(), CssMenu\preprocess(), NewsfeedModel\preprocessForm(), ContactModel\preprocessForm(), ArticleModel\preprocessForm(), ItemModel\preprocessForm(), FormModel\save(), AdminModel\save(), ItemModel\save(), et AssocField\setup().