%3 ::xowiki::File ::xowiki::File build_name demarshall full_file_name html_content marshall pretty_name render_content render_icon search_render www-download ::xowiki::Page ::xowiki::Page → container_already_rendered → find_slot → get_tags → import → quoted_html_content → save_tags __debug_known_field_names add_computed_instance_attributes adp_subst anchor anchor_parent_id build_instance_attribute_map build_name can_be_linked can_contain can_link can_save category_export category_import changed_redirect_url check_adp_include_path check_unresolved_references condition=is_folder_page condition=match condition=regexp content_header_append content_header_get copy_content_vars create_form_field create_form_fields create_form_fields_from_form_constraints create_form_page_instance create_link create_raw_form_field css_class_name default_instance_attributes demarshall detail_link div edit_set_default_values edit_set_file_selector_folder error_during_render error_in_includelet evaluate_form_field_condition exists_form_parameter exists_query_parameter field_names find_slot footer form_field_exists form_field_flush_cache form_field_index form_parameter get_anchor_and_query get_content get_description get_folder get_form_data get_html_from_content get_ids_for_bulk_actions get_instance_attributes get_nls_language_from_lang get_parent_object get_property_from_link_page get_query_parameter_return_url get_rich_text_spec get_target_from_link_page htmlFooter include include_content initialize_loaded_object instantiate_includelet is_folder_page is_form is_link_page is_new_entry is_unprefixed item_ref lang lookup_cached_form_field lookup_form_field map_categories map_party marshall mutual_overwrite_occurred new_link normalize_internal_link_name notification_detail_link notification_notify notification_render notification_subject physical_item_id physical_package_id physical_parent_id pretty_link pretty_name query_parameter record_last_visited references references_update regsub_eval rename render render_content render_icon render_includelet reset_resolve_context resolve_included_page_name return_redirect_without_params reverse_map_party reverse_map_party_attribute save save_data save_new search_render self_link_ids serialize_relocatable set_content set_resolve_context show_fields stats_record_count stats_record_detail substitute_markup translate unescape unset_temporary_instance_variables update update_publish_status validate=form_constraints validate=form_input_fields validate=name validate=page_order www-autosave-attribute www-bulk-delete www-clipboard-add www-clipboard-clear www-clipboard-content www-clipboard-copy www-clipboard-export www-create-new www-create-or-use www-csv-dump www-delete www-delete-revision www-diff www-duplicate www-edit www-list www-make-live-revision www-popular-tags www-revisions www-save-attributes www-save-tags www-toggle-publish-status www-validate-attribute www-view ::xowiki::File->::xowiki::Page ::xowiki::PageTemplate ::xowiki::PageTemplate → count_usages count_usages update www-delete ::xowiki::PageTemplate->::xowiki::Page ::xowiki::PageInstance ::xowiki::PageInstance → get_list_from_form_constraints → get_short_spec_from_form_constraints adp_subst count_usages create_raw_form_field demarshall field_names_from_form_constraints get_field_label get_field_type get_form get_form_constraints get_from_template get_short_spec get_template_object render_content template_vars update widget_spec_from_folder_object www-use-template ::xowiki::PageInstance->::xowiki::Page ::xowiki::PlainPage ::xowiki::PlainPage render_content set_content substitute_markup unescape ::xowiki::PlainPage->::xowiki::Page ::xo::db::CrItem ::xo::db::CrItem ::xowiki::Page->::xo::db::CrItem ::xowiki::Object ::xowiki::Object get_payload initialize_loaded_object render_content set_payload ::xowiki::Object->::xowiki::PlainPage

Class ::xowiki::PlainPage

::xowiki::PlainPage[i] create ... \
           [ -render_adp (default "0") ]

Class Relations

  • class: ::xo::db::CrClass[i]
  • superclass: ::xowiki::Page[i]
  • subclass: ::xowiki::Object[i]
::xo::db::CrClass create ::xowiki::PlainPage \
     -superclass ::xowiki::Page

Methods (to be applied on instances)

  • mime_type (setter)

  • ppage_id (setter)

  • render_adp (setter)

  • render_content (scripted)

    set html ${:text}
    if {[:render_adp]} {
      set html [:adp_subst $html]
    }
    return [:substitute_markup $html]
  • set_content (scripted)

    set :text $text
  • substitute_markup (scripted)

    
    #
    # The provided text is a raw text that is transformed into HTML
    # markup for links etc.
    #
    [self class] instvar RE markupmap
    if {!${:do_substitutions}} {
      return $raw_content
    }
    set html ""
    try {
      if {$context_obj ne ""} {
        :set_resolve_context  -package_id [$context_obj package_id] -parent_id [$context_obj item_id]
      }
      foreach l [split $raw_content \n] {
        set l [string map $markupmap(escape) $l]
        set l [:regsub_eval $RE(anchor)  $l {:anchor  "\1"}]
        set l [:regsub_eval $RE(div)     $l {:div     "\1"}]
        set l [:regsub_eval $RE(include) $l {:include_content "\1" ""}]
        #regsub -all -- $RE(clean) $l {\1} l
        set l [string map $markupmap(unescape) $l]
        append html $l \n
      }
    } on error {errorMsg} {
      error $errorMsg
    } finally {
      if {$context_obj ne ""} {
        :reset_resolve_context
      }
    }
    return $html
  • unescape (scripted)

    return $string

Variables

::xowiki::PlainPage array set RE {include {{{(.+?)}}([^\}]|$)} clean2 {(--DUMMY NOT USED--)} anchor \
       {\\\[\\\[([^\]]+?)\\\]\\\]} div {>>([^<]*?)<<} clean {[\\](\{\{|>>|\[\[)}}
::xowiki::PlainPage set __default_metaclass ::xotcl::Class
::xowiki::PlainPage set __default_superclass ::xotcl::Object
::xowiki::PlainPage set abstract_p f
::xowiki::PlainPage set auto_save false
::xowiki::PlainPage array set db_constraints {}
::xowiki::PlainPage array set db_slot \
       {page_order ::xowiki::Page::slot::page_order creator ::xowiki::Page::slot::creator ppage_id \
       ::xowiki::PlainPage::slot::ppage_id page_id ::xowiki::Page::slot::page_id creation_date \
       ::xo::db::Object::slot::creation_date creation_user ::xo::db::Object::slot::creation_user \
       object_id ::xo::db::Object::slot::object_id description ::xowiki::Page::slot::description \
       text ::xowiki::Page::slot::text creation_ip ::xo::db::Object::slot::creation_ip object_title \
       ::xo::db::Object::slot::object_title nls_language ::xo::db::CrItem::slot::nls_language \
       package_id ::xo::db::Object::slot::package_id name ::xo::db::CrItem::slot::name mime_type \
       ::xo::db::CrItem::slot::mime_type context_id ::xo::db::Object::slot::context_id \
       security_inherit_p ::xo::db::Object::slot::security_inherit_p title \
       ::xowiki::Page::slot::title revision_id ::xo::db::CrItem::slot::revision_id item_id \
       ::xo::db::CrItem::slot::item_id last_modified ::xo::db::Object::slot::last_modified \
       modifying_user ::xo::db::Object::slot::modifying_user publish_date \
       ::xowiki::Page::slot::publish_date modifying_ip ::xo::db::Object::slot::modifying_ip}
::xowiki::PlainPage set folder_id -100
::xowiki::PlainPage set form ::xowiki::PlainWikiForm
::xowiki::PlainPage set id_column ppage_id
::xowiki::PlainPage array set markupmap {unescape { {[[}  \{\{  >>} escape \
       {{\[[}  \\\{\{  {\>>} }}
::xowiki::PlainPage set mime_type text/plain
::xowiki::PlainPage set name_method {}
::xowiki::PlainPage set non_cached_instance_var_patterns __*
::xowiki::PlainPage set object_type ::xowiki::PlainPage
::xowiki::PlainPage set object_type_key 00000000000011110001100100000000
::xowiki::PlainPage set pretty_name {#xowiki.PlainPage_pretty_name#}
::xowiki::PlainPage set pretty_plural {#xowiki.PlainPage_pretty_plural#}
::xowiki::PlainPage set security_inherit_p t
::xowiki::PlainPage set sql_package_name ::xowiki::PlainPage
::xowiki::PlainPage set storage_type text
::xowiki::PlainPage set supertype content_revision
::xowiki::PlainPage set table_name xowiki_plain_page
::xowiki::PlainPage set with_table true