Associations

Utitlity class for associations in multilang

since

3.1

Methods

getAssociations

Get the associations.

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

3.1

throws

\Exception

Arguments

$extension

stringThe name of the component.

$tablename

stringThe name of the table.

$context

stringThe context

$id

integerThe 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() : boolean
static

This works for both site and administrator.

since

3.2

Response

booleanTrue if the parameter is implemented; false otherwise.