[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Language/ -> Associations.php (summary)

Joomla! Content Management System

Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 195 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Associations:: (2 methods):
  getAssociations()
  isEnabled()


Class: Associations  - X-Ref

Utility class for associations in multilang

getAssociations($extension,$tablename,$context,$id,$pk = 'id',$aliasField = 'alias',$catField = 'catid',$advClause = array()   X-Ref
Get the associations.

param: string   $extension   The name of the component.
param: string   $tablename   The name of the table.
param: string   $context     The context
param: integer  $id          The primary key value.
param: string   $pk          The name of the primary key in the given $table.
param: string   $aliasField  If the table has an alias field set it here. Null to not use it
param: string   $catField    If the table has a catid field set it here. Null to not use it
param: array    $advClause   Additional advanced 'where' clause; use c as parent column key, c2 as associations column key
return: array  The associated items

isEnabled()   X-Ref
Method to determine if the language filter Associations parameter is enabled.
This works for both site and administrator.

return: boolean  True if the parameter is implemented; false otherwise.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer