function getSqlForNameInDisplayFormat($input, $dispFormat = "lf", $glue = ' ') { $formattedNameList = getNameInDisplayFormat($input, $dispFormat); $formattedNameListString = implode(",'" . $glue . "',", $formattedNameList); $sqlString = concatNamesSql($formattedNameListString); return $sqlString; }
function getSqlForNameInDisplayFormat($input, $module, $glue = ' ') { $entity_field_info = getEntityFieldNames($module); $tableName = $entity_field_info['tablename']; $fieldsName = $entity_field_info['fieldname']; if (is_array($fieldsName)) { foreach ($fieldsName as $key => $value) { $formattedNameList[] = $input[$value]; } $formattedNameListString = implode(",'" . $glue . "',", $formattedNameList); } else { $formattedNameListString = $input[$fieldsName]; } $sqlString = concatNamesSql($formattedNameListString); return $sqlString; }