Associations
Utility class for associations in multilang
| since |
3.1 |
|---|---|
| package |
Joomla CMS |
Methods
getAssociations
Get the associations.
getAssociations(string extension, string tablename, string context, int id, string pk = 'id', string aliasField = 'alias', string catField = 'catid', array advClause = array()) : array
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
arrayAdditional advanced 'where' clause; use c as parent column key, c2 as associations column key
Response
arrayThe associated items
isEnabled
Method to determine if the language filter Associations parameter is enabled.
isEnabled() : bool
static
This works for both site and administrator.
| since |
3.2 |
|---|
Response
boolTrue if the parameter is implemented; false otherwise.