template::element::querygetall (public)

 template::element::querygetall element_ref

Defined in packages/acs-templating/tcl/element-procs.tcl

Get all values for an element, performing any transformation defined for the datatype.

Parameters:
element_ref (required)

Partial Call Graph (max 5 caller/called nodes):
%3 template::element::create template::element::create (public) template::element::querygetall template::element::querygetall template::element::create->template::element::querygetall template::element::validate template::element::validate (private) template::element::validate->template::element::querygetall template::data::transform::spellcheck template::data::transform::spellcheck (public) template::element::querygetall->template::data::transform::spellcheck template::util::spellcheck::spellcheck_properties template::util::spellcheck::spellcheck_properties (public) template::element::querygetall->template::util::spellcheck::spellcheck_properties

Testcases:
No testcase defined.
Source code:
    upvar $element_ref element

    set datatype $element(datatype)

    set transform_proc "::template::data::transform::$datatype"

    if {[namespace which $transform_proc] eq ""} {

        set values [ns_querygetall $element(id)]

        # QUIRK: ns_querygetall returns a single-element list {{}} for no values
        if { [string equal $values {{}}] } { set values [list] }

    } else {
        set values [template::data::transform::$datatype element]
    }

    # Spell-checker
    array set spellcheck [template::util::spellcheck::spellcheck_properties -element_ref element]

    if { $spellcheck(perform_p) } {

        set values [template::data::transform::spellcheck -element_ref element -values $values]
    }

    return $values
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: