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] ::xowiki::includelet::page_fragment_cache

Class Hierarchy of ::xowiki::includelet::page_fragment_cache

  • ::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
    • ::xowiki::includelet::page_fragment_cache[i]
      Meta-class:
      ::xotcl::Class[i]
      Methods for instances:
      cache_includelet_data, render
      Methods to be applied on the class:
      Methods provided by the meta-class

Class Relations

  • superclass: ::xotcl::Object[i]
::xotcl::Class create ::xowiki::includelet::page_fragment_cache \
     -superclass ::xotcl::Object

Methods

  • instproc cache_includelet_data

    ::xowiki::includelet::page_fragment_cache instproc cache_includelet_data key {
        #my msg "data=[next]"
        set data [next]
        if {$data ne ""} {ns_cache set xowiki_cache $key $data}
      }
  • instproc render

    ::xowiki::includelet::page_fragment_cache instproc render {} {
        set c [my info class]
        #
        # Construct a key based on the class parameters and the 
        # actual parameters
        #
        set key "PF-[my package_id]-"
        append key [expr {[$c aggregating] ? "agg" : "ind"}]
        append key "-$c [my set __caller_parameters]"
        if {[$c localized]}    {append key -[my locale]}
        if {[$c personalized]} {append key -[::xo::cc user_id]}
        set HTML [ns_cache eval xowiki_cache $key next]
        if {[catch {set data [ns_cache get xowiki_cache $key-data]}]} {
          my cache_includelet_data $key-data
        } else {
          #my msg "eval $data"
          eval $data
        }
        return $HTML
      }

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