- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::Attribute
::xo::Attribute create ... \OpenACS specific attribute slot class, which can be further refined. Contains meta data based on the OpenACS meta-data conventions.
[ -constraint_values constraint_values ] \
[ -datatype:substdefault (default "text") ] \
[ -help_text help_text ] \
[ -multivalued multivalued ] \
[ -pretty_name pretty_name ] \
[ -pretty_plural:substdefault (default "") ] \
[ -required:substdefault (default "false") ] \
[ -spec spec ] \
[ -substdefault substdefault ] \
[ -validator validator ]
Defined in packages/xotcl-core/tcl/01-debug-procs.tcl
Class Relations
::xotcl::MetaSlot create ::xo::Attribute \ -superclass ::xotcl::AttributeMethods (to be applied on instances)
init (scripted, public)
<instance of xo::Attribute> initConstructor of the OpenACS specific attribute slot class
- Testcases:
- No testcase defined.
next # provide a default pretty name for the attribute based on message keys if {![info exists :pretty_name]} { set object_type ${:domain} if {[regexp {^::([^:]+)::} $object_type _ head]} { set tail [namespace tail $object_type] set :pretty_name "#$head.$tail-${:name}#" #:log "--created pretty_name = ${:pretty_name}" } else { error "Cannot determine automatically message key for pretty name. Use namespaces for classes" } }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables