Associations
Utility class for associations in multilang
| since |
3.1 |
|---|---|
| package |
Joomla CMS |
Methods
getAssociations
Get the associations.
getAssociations( extension, tablename, context, id, pk = 'id', aliasField = 'alias', catField = 'catid', mixed||string|int advClause = []) : mixed||string|int
static
| since |
3.1 |
|---|---|
| throws |
|
Arguments
- extension
stringThe name of the component.- tablename
stringThe name of the table.- context
stringThe context- id
intThe primary key value.- pk
stringThe name of the primary key in the given $table.- aliasField
stringIf the table has an alias field set it here. Null to not use it- catField
stringIf the table has a catid field set it here. Null to not use it- advClause
array<string|int, mixed>Additional advanced 'where' clause; use c as parent column key, c2 as associations column key
Response
array<string|int, mixed>The associated items
isEnabled
Method to determine if the language filter Associations parameter is enabled.
isEnabled() :
static
This works for both site and administrator.
| since |
3.2 |
|---|
Response
boolTrue if the parameter is implemented; false otherwise.