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]

::xowiki::IncludeletClass[i] ::xowiki::includelet::tags

Class Hierarchy of ::xowiki::includelet::tags

  • ::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
    • ::xo::Context[i]
      Meta-class:
      ::xotcl::Class[i]
      Parameter for instances:
      actual_query (default " "), locale, package_id (default "0"), parameter_declaration (default "")
      Methods for instances:
      exists_query_parameter, export_vars, get_all_query_parameter, get_parameters, initialize, original_url_and_query, process_query_parameter, query_parameter
      Methods to be applied on the class:
      Methods provided by the meta-class
      • ::xowiki::Includelet[i]
        Meta-class:
        ::xotcl::Class[i]
        Parameter for instances:
        __decoration (default "portlet"), id, name (default ""), parameter_declaration (default ""), title (default "")
        Methods for instances:
        category_clause, get_page_order, include_head_entries, initialize, js_name, resolve_page_name, screen_name
        Methods to be applied on the class (in addition to the methods provided by the meta-class):
        available_includelets, describe_includelets, glob_clause, html_encode, html_id, html_to_text, js_encode, js_name, listing, locale_clause, parent_id_clause, publish_status_clause, require_YUI_CSS, require_YUI_JS
        • ::xowiki::includelet::tags[i]
          Meta-class:
          ::xowiki::IncludeletClass[i]
          Parameter for instances:
          parameter_declaration (default " {-limit:integer 20} {-summary:boolean 0} {-popular:boolean 0} {-page} "), title (default "Tags")
          Methods for instances:
          render
          Methods to be applied on the class:
          Methods provided by the meta-class

Class Relations

  • superclass: ::xowiki::Includelet[i]
::xowiki::IncludeletClass create ::xowiki::includelet::tags \
     -superclass ::xowiki::Includelet \
     -parameter {{parameter_declaration {
          {-limit:integer 20}
          {-summary:boolean 0}
          {-popular:boolean 0}
          {-page}
        }} {title "Tags"}}

Methods

  • instproc render

    ::330568 instproc render {} {
        my get_parameters
        ::xo::Page requireCSS "/resources/acs-templating/lists.css"
    
        if {$popular} {
          set label [_ xowiki.popular_tags_label]
          set tag_type ptag
          set sql [::xo::db::sql select  -vars "count(*) as nr,tag"  -from xowiki_tags  -where "package_id=$package_id"  -groupby tag  -orderby tag  -limit $limit]
        } else {
          set label [_ xowiki.your_tags_label]
          set tag_type tag 
          set sql "select count(*) as nr,tag from xowiki_tags where  user_id=[::xo::cc user_id] and package_id=$package_id group by tag order by tag"
        }
        set entries [list]
    
        if {![info exists page]} {set page [$package_id get_parameter weblog_page]}
    
        set href [$package_id package_url]tag/
        db_foreach [my qn get_counts] $sql {
          set q [list]
          if {$summary} {lappend q "summary=$summary"}
          if {$popular} {lappend q "popular=$popular"}
          set link $href$tag?[join $q &]
          #lappend entries "$tag <a href='$href'>($nr)</a>"
          lappend entries "$tag <a rel='tag' href='$link'>($nr)</a>"
        }
        return [expr {[llength $entries]  > 0 ? 
                      "<h3>$label</h3> <BLOCKQUOTE>[join $entries {, }]</BLOCKQUOTE>\n" :
                      ""}]
      }
    

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