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
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
Additional advanced 'where' clause; use c as parent column key, c2 as associations column key
Response
array
The 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
bool
True if the parameter is implemented; false otherwise.