%3 ::xowiki::PlainWikiForm ::xowiki::PlainWikiForm tidy ::xowiki::WikiForm ::xowiki::WikiForm after_submit data_from_form edit_data edit_request mkFields new_data new_request on_submit tidy update_references ::xowiki::PlainWikiForm->::xowiki::WikiForm ::xowiki::PageInstanceEditForm ::xowiki::PageInstanceEditForm edit_data edit_request init new_data tidy ::xowiki::PageInstanceEditForm->::xowiki::WikiForm ::xowiki::PageTemplateForm ::xowiki::PageTemplateForm ::xowiki::PageTemplateForm->::xowiki::WikiForm ::xowiki::PageInstanceForm ::xowiki::PageInstanceForm edit_data new_data set_submit_link_edit tidy ::xowiki::PageInstanceForm->::xowiki::WikiForm ::xowiki::FileForm ::xowiki::FileForm edit_data get_uploaded_file new_data tidy ::xowiki::FileForm->::xowiki::WikiForm ::Generic::Form ::Generic::Form after_submit edit_data edit_request form_vars generate get_id_field init new_data new_request on_submit on_validation_error request set_form_data ::xowiki::WikiForm->::Generic::Form ::xotcl::Object ::xotcl::Object ::Generic::Form->::xotcl::Object

Class ::xowiki::PageInstanceForm

::xowiki::PageInstanceForm[i] create ... \
           [ -f.page_template (default "page_template:text(select) {label "Page Template"} {options \[xowiki::page_templates\]}") ] \
           [ -field_list (default "item_id name page_order page_template description nls_language") ] \
           [ -with_categories (default "false") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::WikiForm[i]
::xotcl::Class create ::xowiki::PageInstanceForm \
     -superclass ::xowiki::WikiForm

Methods (to be applied on instances)

  • edit_data (scripted)

    return [next]
  • f.page_template (setter)

  • field_list (setter)

  • new_data (scripted)

    set item_id [next]
    :set_submit_link_edit
    return $item_id
  • set_submit_link_edit (scripted)

    set object_type [[${:data} info class] object_type]
    #:log "-- data=${:data} cl=[${:data} info class] object_type=$object_type"
    set item_id [${:data} set item_id]
    set page_template [${:data} form_parameter page_template]
    if {[${:data} exists_query_parameter return_url]} {
      set return_url [${:data} query_parameter return_url:localurl]
    }
    :submit_link [${:data} pretty_link -query [export_vars {
      {m edit} page_template return_url item_id
    }]]
    # :log "-- submit_link = [:submit_link]"
  • tidy (scripted)

    # nothing
  • with_categories (setter)