xo::tdom::AttributeManager instproc get_local_attributes (public)

 <instance of xo::tdom::AttributeManager[i]> get_local_attributes \
    args [ args... ]

Defined in packages/xotcl-core/tcl/30-widget-procs.tcl

Get a list of attribute value pairs of instance attributes. It returns only those pairs for which a value exists.

Parameters:
args
Returns:
flattened list of attribute value pairs

Partial Call Graph (max 5 caller/called nodes):
%3 test_xowiki_test_cases xowiki_test_cases (test xowiki) xo::tdom::AttributeManager instproc get_local_attributes xo::tdom::AttributeManager instproc get_local_attributes test_xowiki_test_cases->xo::tdom::AttributeManager instproc get_local_attributes

Testcases:
xowiki_test_cases
Source code:
set pairs [list]
foreach attribute $args {
  set l [split $attribute]
  if {[llength $l] > 1} {
    lassign $l attribute HTMLattribute
  } else {
    set HTMLattribute $attribute
  }
  #:msg "${:name} check for $attribute => [info exists :$attribute]"
  if {[:uplevel [list info exists $attribute]]} {
    lappend pairs $HTMLattribute [:uplevel [list set $attribute]]
  }
}
return $pairs
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: