addLanguageClauseToTranslationJoins()

Overview

public void function addLanguageClauseToTranslationJoins(
      required array   tableJoins      
    , required string  language        
    , required struct  preparedFilter  
    ,          boolean fromVersionTable = false
)

Works on intercepted select queries to discover and decorate joins on translation objects with an additional clause for the passed in language

Arguments

NameTypeRequiredDescription
tableJoinsarrayYesArray of table joins as calculated by the SelectData() logic
languagestringYesThe language to filter on
preparedFilterstructYesThe fully prepared and resolved filter that will be used in the select query
fromVersionTablebooleanNo (default=false)