cleanup: trim list resources and remaining helper comments

This commit is contained in:
Naeel
2026-04-29 20:57:39 +04:00
parent 7b98eee156
commit 44daae628d
5 changed files with 53 additions and 33 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
<cffunction name="passThrough"
returntype="any"
output="false"
hint="just return argument">
hint="Возвращает аргумент без изменений">
<cfargument name="x" type="ANY" required="true"/>
<cfreturn #ARGUMENTS.x#/>
</cffunction>
@@ -32,7 +32,7 @@
</cfif>
<cffunction name="getCfSqlType">
<!---Translate CF type understandable by isValid to CF_SQL_*--->
<!--- Преобразует тип CF, понимаемый isValid, в CF_SQL_* --->
<cfargument name="type"/>
<cfswitch expression=#ARGUMENTS.type#>
+2 -2
View File
@@ -1,4 +1,4 @@
<!--- build query filter string --->
<!--- Формирует строку фильтра для запроса --->
<cfparam name="ATTRIBUTES.filter" type="array"/>
<cfloop array=#ATTRIBUTES.filter# index="fltr"><!--- неинтуитивный синтаксис, в индексе не индекс массива, а значение --->
@@ -33,7 +33,7 @@
---><cfcase value="IN"> IN (<cfqueryparam cfsqltype=#getCfSqLType(fltr.ftype)# list=true value="#fltr.val#"/>)<cfcontinue/></cfcase><!---
---><cfdefaultcase> = <cfoutput> #fltr.field#</cfoutput><cfcontinue/><!---***криво---></cfdefaultcase><!---
---></cfswitch><cfqueryparam cfsqltype=#getCfSqLType(fltr.ftype)# value="#fltr.val#"/><cfcontinue/>
</cfif><!--- *** ILIKE POSTGRESQL SPECIFIC --->
</cfif><!--- ILIKE зависит от PostgreSQL --->
</cfloop>
<cfexit method="exittag"/>