Saltar al contenido principal
Inicio del contenido principal
Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]

::xotcl::Class[i] ::xo::Attribute

Class Hierarchy of ::xo::Attribute

  • ::xotcl::Object[i]
    Meta-class:
    ::xotcl::Class[i]
    Methods for instances:
    __api_make_doc, __api_make_forward_doc, __nextC, __timediff, abstract, ad_doc, ad_forward, ad_proc, appendC, arrayC, asHTML, autonameC, checkC, classC, cleanupC, configureC, contains, copy, db_1rowC, debug, defaultmethod, destroyC, destroy_on_cleanup, dot_append_method, dotclass, dotcode, dotquote, dotquotel, evalC, existsC, extractConfigureArg, filterC, filterguardC, filtersearchC, forwardC, hasclass, incrC, infoC, init, instvarC, invarC, isclassC, ismetaclassC, ismixinC, isobjectC, istypeC, lappendC, log, method, mixinC, mixinguardC, move, msg, noinitC, parametercmdC, procC, procsearchC, qn, requireNamespaceC, self, serialize, setC, substC, traceC, unsetC, uplevelC, upvarC, volatileC, vwaitC
    Methods to be applied on the class (in addition to the methods provided by the meta-class):
    __exitHandler, getExitHandler, setExitHandler, unsetExitHandler
    • ::xotcl::Slot[i]
      Meta-class:
      ::xotcl::MetaSlot[i]
      Methods for instances:
      add, assignC, defaultC, defaultmethodsC, delete, domainC, getC, init, initcmdC, managerC, multivaluedC, nameC, per-objectC, typeC, unknown, valuechangedcmdC, valuecmdC
      Methods to be applied on the class:
      Methods provided by the meta-class
      • ::xotcl::Attribute[i]
        Meta-class:
        ::xotcl::MetaSlot[i]
        Methods for instances:
        __default_from_cmd, __value_changed_cmd, __value_from_cmd, check_multiple_values, check_single_value, defaultC, destroy, init, initcmdC, mk_type_checker, value_checkC, valuechangedcmdC, valuecmdC
        Methods to be applied on the class:
        Methods provided by the meta-class
        • ::xo::Attribute[i]
          Meta-class:
          ::xotcl::Class[i]
          Parameter for instances:
          constraint_values, datatype (default "text"), help_text, pretty_name, pretty_plural (default ""), required (default "false"), spec, validator
          Methods for instances:
          init
          Methods to be applied on the class:
          Methods provided by the meta-class

Class Relations

  • superclass: ::xotcl::Attribute[i]
  • subclass: ::xo::db::Attribute[i]
::xotcl::Class create ::xo::Attribute \
     -superclass ::xotcl::Attribute \
     -parameter {constraint_values {datatype "text"} help_text pretty_name {pretty_plural ""} \
       {required false} spec validator}

Methods

  • instproc init

    ::xo::Attribute instproc init {} {
        my instvar name pretty_name
        next
        # provide a default pretty name for the attribute based on message keys
        if {![info exists pretty_name]} {
          set object_type [my domain] 
          if {[regexp {^::([^:]+)::} $object_type _ head]} {
    	set tail [namespace tail $object_type]
    	set pretty_name "#$head.$tail-$name#"
    	#my log "--created pretty_name = $pretty_name"
          } else {
    	error "Cannot determine automatically message key for pretty name.  Use namespaces for classes"
          }
        }
      }

Instances

::xowiki::Page::slot::creation_user[i], ::xowiki::Page::slot::descripion[i], ::xowiki::Page::slot::last_modified[i], ::xowiki::Page::slot::name[i], ::xowiki::Page::slot::nls_language[i], ::xowiki::Page::slot::publish_date[i], ::xowiki::Page::slot::text[i], ::xowiki::Page::slot::title[i]

Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]
Mi calendario