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
string
The name of the component.- tablename
string
The name of the table.- context
string
The context- id
int
The primary key value.- pk
string
The name of the primary key in the given $table.- aliasField
string
If the table has an alias field set it here. Null to not use it- catField
string
If 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
bool
True if the parameter is implemented; false otherwise.