Class ::xowiki::formfield::CalendarField

::xowiki::formfield::CalendarField[i] create ... \
           [ -calendar calendar ] \
           [ -multiday:boolean (default "false") ] \
           [ -time_label (default "#xowiki.event-time#") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::CompoundField[i]
  • subclass: ::xowiki::formfield::event[i], ::xowiki::formfield::time_span[i]
::xotcl::Class create ::xowiki::formfield::CalendarField \
     -superclass ::xowiki::formfield::CompoundField

Methods (to be applied on instances)

  • calendar (setter)

  • multiday (setter)

  • time_label (setter)

  • update_calendar (scripted)

    #
    # If we have already a valid cal_item_id (checked previously)
    # update the entry. Otherwise create a new calendar item and
    # update the instance variables.
    #
    if {$cal_item_id ne ""} {
      #:log "===== [list calendar::item::edit -start_date $start -end_date $end -cal_item_id $cal_item_id ...]"
      calendar::item::edit -cal_item_id $cal_item_id -start_date $start  -end_date $end -name $name -description $description
    } else {
      #:log "===== [list calendar::item::new -start_date $start -end_date $end -calendar_id $calendar_id ...]"
      set cal_item_id [calendar::item::new -start_date $start -end_date $end  -name $name -description $description -calendar_id $calendar_id]
      [:get_component cal_item_id] value $cal_item_id
      #
      # The following line is required when used in transaction to
      # update the instance attributes
      #
      ${:object} set_property [namespace tail [:info class]] [:get_compound_value]
    }