xowiki::Page proc find_slot (public)
xowiki::Pagefind_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
![[i]](/resources/acs-subsite/ZoomIn16.gif)