xotcl.wu-wien.ac.at
Begin main content
Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]

::xotcl::Class[i] ::xowiki::Link::language

Class Hierarchy of ::xowiki::Link::language

  • ::xotcl::Object[i]
    Meta-class:
    ::xotcl::Class[i]
    Methods for instances:
    __api_make_doc, __api_make_forward_doc, __timediff, abstract, ad_doc, ad_forward, ad_proc, appendC, arrayC, asHTML, autonameC, check, classC, cleanupC, configureC, containsC, copyC, db_0or1rowC, db_1rowC, debug, defaultmethodC, destroyC, destroy_on_cleanup, ds, evalC, existsC, extractConfigureArg, filterC, filterguardC, filtersearch, forward, hasclass, incrC, infoC, init, instvarC, invarC, isclass, ismetaclass, ismixin, isobject, istype, lappendC, log, method, mixinC, mixinguardC, moveC, msg, noinitC, objectparameter, parametercmdC, proc, procsearch, qn, requireNamespaceC, residualargsC, self, serialize, setC, set_instance_vars_defaults, show-object, substC, traceC, unknown, unsetC, uplevelC, upvarC, volatileC, vwait
    Methods to be applied on the class (in addition to the methods provided by the meta-class):
    getExitHandler, setExitHandler, unsetExitHandler
    • ::xowiki::BaseLink[i]
      Meta-class:
      ::xotcl::Class[i]
      Parameter for instances:
      anchor (default ""), cssclass, cssid, extra_query_parameter, href, label, query (default ""), target, title
      Methods for instances:
      mk_css_class, mk_css_class_and_id
      Methods to be applied on the class:
      Methods provided by the meta-class
      • ::xowiki::Link[i]
        Meta-class:
        ::xotcl::Class[i]
        Parameter for instances:
        form (default ""), item_id, lang, name, package_id, page, parent_id, revision_id, stripped_name, type (default "link")
        Methods for instances:
        atts, init, link_name, lookup_xowiki_package_by_name, new_link, pretty_link, render, render_found, render_not_found, resolve
        Methods to be applied on the class:
        Methods provided by the meta-class
        • ::xowiki::Link::language[i]
          Meta-class:
          ::xotcl::Class[i]
          Parameter for instances:
          return_only
          Methods for instances:
          render
          Methods to be applied on the class:
          Methods provided by the meta-class

Class Relations

  • superclass: ::xowiki::Link[i]
::xotcl::Class create ::xowiki::Link::language \
     -superclass ::xowiki::Link \
     -parameter return_only

Methods

  • instproc render

    ::924007 instproc render {} {
        set page [my page]
        my instvar lang name package_id
        set item_id [my resolve]
        if {$item_id} {
          set image_css_class "found"
          set link [$package_id pretty_link -lang $lang -parent_id [my parent_id] [my stripped_name]]
        } else {
          set image_css_class "undefined"
          set last_page_id [$page set item_id]
          set object_type  [[$page info class] set object_type]
          set link [$package_id make_link $package_id  edit-new object_type name last_page_id]
        }
        # my log "--lang_link=$link"
        if {[my exists return_only] && [my return_only] ne $image_css_class} {
          set link ""
        }
        if {$link ne ""} {
          $page lappend lang_links($image_css_class)  "<a href='$link' [my mk_css_class_and_id]><img class='$image_css_class'  src='/resources/xowiki/flags/$lang.png' alt='$lang'></a>"
        }
        return ""
      }
    

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