xowiki::Page proc find_slot (public)

 xowiki::Page[i] find_slot -start_class start_class  name

Defined in /var/www/openacs/packages/xowiki/tcl/xowiki-www-procs.tcl

Find a named slot on a class or its ancestors.

Switches:
-start_class (required)
Class where lookup starts.
Parameters:
name (required)
Slot name.
Returns:
The slot object or an empty string.

Testcases:
slot_interactions
Source code:
foreach cl [list $start_class {*}[$start_class info heritage]] {
  set slotobj ${cl}::slot::$name
  if {[nsf::is object $slotobj]} {
    #:msg $slotobj
    return $slotobj
  }
}
return ""
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: