apidoc::xql_links_list (private)
apidoc::xql_links_list [ -include_compiled include_compiled ] path
Defined in packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl
- Switches:
- -include_compiled (optional, defaults to
"0")- Parameters:
- path (required)
- path and filename from $::acs::rootdir
- Returns:
- list of xql files related to Tcl script file
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set linkList [list] set viewer [string trimright [ad_conn package_url] /]/content-page-view set paths [list $path] set root_path [file rootname $path] set themed_path [template::themed_template $root_path] if {$themed_path ne $root_path} { lappend paths $themed_path } foreach path $paths { set filename $::acs::rootdir/$path set file_dirname [file dirname $filename] set file_rootname [file rootname [file tail $filename]] regsub {(-oracle|-postgresql)$} $file_rootname {} file_rootname lappend files {*}[glob -nocomplain -directory $file_dirname "${file_rootname}{,-}{,oracle,postgresql}.{adp,tcl,xql}" ] } foreach file [lsort -decreasing $files] { set path [string range $file [string length $::acs::rootdir] end] set display_file [string trimleft $path /] set link [export_vars -base $viewer {{source_p 1} path}] lappend linkList [list filename $display_file link $link] if {$include_compiled && [file extension $file] eq ".adp"} { set link [export_vars -base $viewer {{source_p 1} {compiled_p 1} path}] lappend linkList [list filename "$display_file (compiled)" link $link] } } return $linkListXQL Not present: Generic, PostgreSQL, Oracle