Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Associations

Fonctions membres publiques statiques

static getAssociations ( $extension, $tablename, $context, $id, $pk='id', $aliasField='alias', $catField='catid', $advClause=array())
 
static isEnabled ()
 

Description détaillée

Utility class for associations in multilang

Depuis
3.1

Documentation des fonctions membres

◆ getAssociations()

static getAssociations (   $extension,
  $tablename,
  $context,
  $id,
  $pk = 'id',
  $aliasField = 'alias',
  $catField = 'catid',
  $advClause = array() 
)
static

Get the associations.

Paramètres
string$extensionThe name of the component.
string$tablenameThe name of the table.
string$contextThe context
integer$idThe primary key value.
string$pkThe name of the primary key in the given $table.
string$aliasFieldIf the table has an alias field set it here. Null to not use it
string$catFieldIf the table has a catid field set it here. Null to not use it
array$advClauseAdditional advanced 'where' clause; use c as parent column key, c2 as associations column key
Renvoie
array The associated items
Depuis
3.1
Exceptions

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().

◆ isEnabled()


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