%3 ::xowiki::FormPage ::xowiki::FormPage → compute_filter_clauses → fetch_object → filter_expression → get_all_children → get_folder_children → get_form_entries → get_super_folders → get_table_form_fields → sql_value action_url adp_subst combine_data_and_form_field_default compute_link_properties condition=in_state condition=is_true configure_page=regression_test create_category_fields create_form_field create_form_fields create_form_fields_from_names demarshall exists_property extra_html_fields field_names field_names_from_form footer form_field_as_html form_fields_sanity_check get_anon_instances get_form_constraints get_form_value get_parameter get_property get_value group_assign group_require hstore_attributes include_header_info initialize initialize_loaded_object is_folder_page is_form is_link_page langstring lappend_property load_values_into_form_fields map_value map_values marshall new_link notification_render post_process_dom_tree post_process_form_fields pretty_name property render_content render_form_action_buttons render_icon render_thumbnails reverse_map_value reverse_map_values setCSSDefaults set_content set_form_data set_form_value set_live_revision set_property set_publish_status update update_attribute_from_slot update_item_index update_langstring_property www-edit www-file-upload www-toggle-modebutton ::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::FormPage->::xowiki::PageInstance ::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::PageInstance->::xowiki::Page ::xo::db::CrItem ::xo::db::CrItem ::xowiki::Page->::xo::db::CrItem

Class ::xowiki::FormPage

::xowiki::FormPage[i] create ...

Class Relations

  • class: ::xo::db::CrClass[i]
  • superclass: ::xowiki::PageInstance[i]

Methods (to be applied on the object)

  • compute_filter_clauses (scripted, public)

     xowiki::FormPage[i] compute_filter_clauses [ -unless unless ] \
        [ -where where ]

    Compute from "-unless" or "-where" specs the "tcl", "sql" and optional "hstore" query fragments.

    Switches:
    -unless
    (optional)
    -where
    (optional)
    Returns:
    dict containing "init_vars", "uc" (unless clauses) and "wc" (where clauses)

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_composite_test_item create_composite_test_item (test xowf) xowiki::FormPage proc compute_filter_clauses xowiki::FormPage proc compute_filter_clauses test_create_composite_test_item->xowiki::FormPage proc compute_filter_clauses

    Testcases:
    create_composite_test_item
  • fetch_object (scripted, public)

     xowiki::FormPage[i] fetch_object -item_id item_id  \
        [ -revision_id revision_id ] -object object  \
        [ -initialize on|off ]

    Load a content item into the specified object. If revision_id is provided, the specified revision is returned, otherwise the live revision of the item_id. If the object does not exist, we create it.

    Switches:
    -item_id
    (required)
    -revision_id
    (defaults to "0") (optional)
    -object
    (required)
    -initialize
    (boolean) (defaults to "true") (optional)
    Returns:
    cr item object

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_link_tests link_tests (test xowiki) xowiki::FormPage proc fetch_object xowiki::FormPage proc fetch_object test_link_tests->xowiki::FormPage proc fetch_object test_path_resolve path_resolve (test xowiki) test_path_resolve->xowiki::FormPage proc fetch_object test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->xowiki::FormPage proc fetch_object db_exec db_exec (public) xowiki::FormPage proc fetch_object->db_exec db_with_handle db_with_handle (public) xowiki::FormPage proc fetch_object->db_with_handle

    Testcases:
    xowiki_test_cases, link_tests, path_resolve
  • filter_expression (scripted)

     xowiki::FormPage[i] filter_expression

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_xowiki xowiki (test ) xowiki::FormPage proc filter_expression xowiki::FormPage proc filter_expression test_xowiki->xowiki::FormPage proc filter_expression test_xowiki_test_cases xowiki_test_cases (test ) test_xowiki_test_cases->xowiki::FormPage proc filter_expression xowiki::hstore::double_quote xowiki::hstore::double_quote (public) xowiki::FormPage proc filter_expression->xowiki::hstore::double_quote

    Testcases:
    xowiki_test_cases, xowiki
  • get_all_children (scripted)

     xowiki::FormPage[i] get_all_children

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_includelet_childresources includelet_childresources (test ) xowiki::FormPage proc get_all_children xowiki::FormPage proc get_all_children test_includelet_childresources->xowiki::FormPage proc get_all_children test_xowiki xowiki (test ) test_xowiki->xowiki::FormPage proc get_all_children ad_log ad_log (public) xowiki::FormPage proc get_all_children->ad_log

    Testcases:
    includelet_childresources, xowiki
  • get_folder_children (scripted)

  • get_form_entries (scripted)

  • get_super_folders (scripted)

  • get_table_form_fields (scripted)

  • sql_value (scripted)

Methods (to be applied on instances)

  • action_url (scripted)

  • adp_subst (scripted)

  • assignee (setter)

  • combine_data_and_form_field_default (scripted, public)

     <instance of xowiki::FormPage[i]> combine_data_and_form_field_default \
        is_new form_field data_value

    Combine the value of the form field (e.g. determined by the default) with the value in the instance attributes. This function decides, whether it should honor the data value or the form field value for e.g. rendering forms.

    Parameters:
    is_new - is this a new entry?
    form_field - object id of the form field
    data_value - the data from the instance attributes.

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::FormPage instproc combine_data_and_form_field_default xowiki::FormPage instproc combine_data_and_form_field_default test_create_form_with_form_instance->xowiki::FormPage instproc combine_data_and_form_field_default

    Testcases:
    create_form_with_form_instance
  • compute_link_properties (scripted)

  • condition=in_state (scripted)

  • condition=is_true (scripted)

  • configure_page=regression_test (scripted)

  • create_category_fields (scripted)

  • create_form_field (scripted)

  • create_form_fields (scripted)

  • create_form_fields_from_names (scripted)

  • demarshall (scripted)

  • exists_property (scripted)

  • extra_html_fields (scripted, public)

     <instance of xowiki::FormPage[i]> extra_html_fields

    Should be overloaded to provide extra content to some forms. This method can be used to add additional (e.g. hidden) HTML input fields to form pages. Example: ::html::input -type hidden -name __object_name -value [::security::parameter::signed ${:name}]

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_test_items create_test_items (test xowf) xowiki::FormPage instproc extra_html_fields xowiki::FormPage instproc extra_html_fields test_create_test_items->xowiki::FormPage instproc extra_html_fields

    Testcases:
    create_test_items
  • field_names (scripted)

  • field_names_from_form (scripted)

  • footer (scripted)

  • form_field_as_html (scripted)

  • form_fields_sanity_check (scripted)

  • get_anon_instances (scripted)

  • get_form_constraints (scripted)

  • get_form_value (scripted)

  • get_parameter (scripted)

  • get_property (scripted, public)

     <instance of xowiki::FormPage[i]> get_property [ -source source ] \
        -name name  [ -default default ]

    Retrieves a FormPage property

    Switches:
    -source
    (optional)
    page name to be resolved and used instead this FormPage to fetch the property
    -name
    (required)
    -default
    (optional)

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_test_items create_test_items (test xowf) xowiki::FormPage instproc get_property xowiki::FormPage instproc get_property test_create_test_items->xowiki::FormPage instproc get_property

    Testcases:
    create_test_items
  • get_value (scripted)

  • group_assign (scripted)

  • group_require (scripted)

  • hstore_attributes (scripted)

  • include_header_info (scripted)

  • initialize (scripted)

  • initialize_loaded_object (scripted)

  • is_folder_page (scripted, public)

     <instance of xowiki::FormPage[i]> is_folder_page \
        [ -include_folder_links include_folder_links ]

    Check, if FormPage is a folder. A FormPage is a folder when its page template is the folder.form or if this is a link pointing to a folder.

    Switches:
    -include_folder_links
    (defaults to "true") (optional)
    return true, if the current page is a link to a folder.
    Returns:
    boolean

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_xowiki_test_cases xowiki_test_cases (test xowiki) xowiki::FormPage instproc is_folder_page xowiki::FormPage instproc is_folder_page test_xowiki_test_cases->xowiki::FormPage instproc is_folder_page

    Testcases:
    xowiki_test_cases
  • is_form (scripted)

  • is_link_page (scripted)

  • langstring (scripted)

  • lappend_property (scripted)

  • load_values_into_form_fields (scripted, public)

     <instance of xowiki::FormPage[i]> load_values_into_form_fields \
        form_fields

    Load either the instance variables or the instance attributes into the provided form-fields. The function sets the values based on the default values and the values for the current object.

    Parameters:
    form_fields

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::FormPage instproc load_values_into_form_fields xowiki::FormPage instproc load_values_into_form_fields test_create_form_with_form_instance->xowiki::FormPage instproc load_values_into_form_fields test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::FormPage instproc load_values_into_form_fields _ _ (public) xowiki::FormPage instproc load_values_into_form_fields->_

    Testcases:
    create_form_with_form_instance, create_form_with_numeric
  • map_value (scripted)

  • map_values (scripted)

  • marshall (scripted)

  • mime_type (setter)

  • new_link (scripted)

  • notification_render (scripted)

  • post_process_dom_tree (scripted)

  • post_process_form_fields (scripted)

  • pretty_name (scripted)

  • property (scripted, public)

     <instance of xowiki::FormPage[i]> property name [ default ]

    Retrieve a FormPage property.

    Parameters:
    name - property name. Names starting with _ refer to object's members, rather than instance attributes.
    default (optional) - fallback value when property is not set.

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_xowiki_test_cases xowiki_test_cases (test xowiki) xowiki::FormPage instproc property xowiki::FormPage instproc property test_xowiki_test_cases->xowiki::FormPage instproc property

    Testcases:
    xowiki_test_cases
  • render_content (scripted)

  • render_form_action_buttons (scripted)

  • render_icon (scripted)

  • render_thumbnails (scripted, public)

     <instance of xowiki::FormPage[i]> render_thumbnails upload_info

    Renderer of the thumnail file(s). This method is a stub to be refined (e.g. in xowf).

    Parameters:
    upload_info - dict containing the "file_object" and "file_name"
    Returns:
    HTML content

    Partial Call Graph (max 5 caller/called nodes):
    %3

    Testcases:
    No testcase defined.
  • reverse_map_value (scripted)

  • reverse_map_values (scripted)

  • setCSSDefaults (scripted)

  • set_content (scripted)

  • set_form_data (scripted, public)

     <instance of xowiki::FormPage[i]> set_form_data form_fields

    Store the instance attributes or default values into the form via set_form_value. This function iterates over the provided form-fields and checks, if these are known fields in the current form. These known field names are defined via the method "field_names" that extracts these names from a form. If one wants to load all values from an FormPage into the provided form-fields, use method "load_values_into_form_fields" instead.

    Parameters:
    form_fields

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::FormPage instproc set_form_data xowiki::FormPage instproc set_form_data test_create_form_with_form_instance->xowiki::FormPage instproc set_form_data xo::require_html_procs xo::require_html_procs (public) xowiki::FormPage instproc set_form_data->xo::require_html_procs

    Testcases:
    create_form_with_form_instance
  • set_form_value (scripted)

  • set_live_revision (scripted, public)

     <instance of xowiki::FormPage[i]> set_live_revision \
        -revision_id revision_id  [ -publish_status publish_status ]
    Switches:
    -revision_id
    (required)
    -publish_status
    (defaults to "ready") (optional)
    one of 'live', 'ready' or 'production'

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_folder_with_page create_folder_with_page (test xowf) xowiki::FormPage instproc set_live_revision xowiki::FormPage instproc set_live_revision test_create_folder_with_page->xowiki::FormPage instproc set_live_revision test_create_workflow_with_instance create_workflow_with_instance (test xowf) test_create_workflow_with_instance->xowiki::FormPage instproc set_live_revision xowiki::update_item_index xowiki::update_item_index (public) xowiki::FormPage instproc set_live_revision->xowiki::update_item_index

    Testcases:
    create_folder_with_page, create_workflow_with_instance
  • set_property (scripted, public)

     <instance of xowiki::FormPage[i]> set_property [ -new new ] name \
        value

    Stores a value as FormPage property

    Switches:
    -new
    (defaults to "0") (optional)
    boolean flag telling if the property is new. Setting a value on a non-existing property without specifying this flag will result in an error.
    Parameters:
    name - property name. Names starting with _ indicate an object variable rather than a property stored in instance_attributes
    value - property value
    Returns:
    value (eventually converted to a has-notation message key)

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::FormPage instproc set_property xowiki::FormPage instproc set_property test_create_form_with_form_instance->xowiki::FormPage instproc set_property

    Testcases:
    create_form_with_form_instance
  • set_publish_status (scripted)

  • state (setter)

  • update (scripted)

  • update_attribute_from_slot (scripted, public)

     <instance of xowiki::FormPage[i]> update_attribute_from_slot \
        [ -revision_id revision_id ] slot value

    Tailored version of update_attribute_from_slot to keep insert_xowiki_form_instance_item_index in sync after single attribute updates.

    Switches:
    -revision_id
    (optional)
    Parameters:
    slot
    value

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_slot_interactions slot_interactions (test xowiki) xowiki::FormPage instproc update_attribute_from_slot xowiki::FormPage instproc update_attribute_from_slot test_slot_interactions->xowiki::FormPage instproc update_attribute_from_slot xowiki::update_item_index xowiki::update_item_index (public) xowiki::FormPage instproc update_attribute_from_slot->xowiki::update_item_index

    Testcases:
    slot_interactions
  • update_item_index (scripted, public)

     <instance of xowiki::FormPage[i]> update_item_index

    Tailored version of CrItem.update_item_index to keep insert_xowiki_form_instance_item_index in sync after updates.

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_link_tests link_tests (test xowiki) xowiki::FormPage instproc update_item_index xowiki::FormPage instproc update_item_index test_link_tests->xowiki::FormPage instproc update_item_index xowiki::hstore::dict_as_hkey xowiki::hstore::dict_as_hkey (public) xowiki::FormPage instproc update_item_index->xowiki::hstore::dict_as_hkey

    Testcases:
    link_tests
  • update_langstring_property (scripted)

  • www-edit (scripted, public)

     <instance of xowiki::FormPage[i]> www-edit \
        [ -validation_errors validation_errors ] \
        [ -disable_input_fields disable_input_fields ] [ -view on|off ]

    This web-callable method renders a form page in "edit" mode (i.e. provide input fields). The following query parameters can be used to influene the results "return_url", "title", "detail_link", "text", and "description".

    Switches:
    -validation_errors
    (optional)
    -disable_input_fields
    (defaults to "0") (optional)
    -view
    (boolean) (defaults to "true") (optional)

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_create_workflow_with_instance create_workflow_with_instance (test xowf) xowiki::FormPage instproc www-edit xowiki::FormPage instproc www-edit test_create_workflow_with_instance->xowiki::FormPage instproc www-edit ad_log ad_log (public) xowiki::FormPage instproc www-edit->ad_log ad_urlencode_url ad_urlencode_url (public) xowiki::FormPage instproc www-edit->ad_urlencode_url dom dom xowiki::FormPage instproc www-edit->dom export_vars export_vars (public) xowiki::FormPage instproc www-edit->export_vars html::CSRFToken html::CSRFToken xowiki::FormPage instproc www-edit->html::CSRFToken

    Testcases:
    create_workflow_with_instance
  • www-file-upload (scripted, public)

     <instance of xowiki::FormPage[i]> www-file-upload

    This web-callable method can be used for uploading files using the current object as parent object for the new content. This method is typically called via drop-zone in a POST request, where the FormPage is a folder (which is treated as parent object)

    Partial Call Graph (max 5 caller/called nodes):
    %3 ad_script_abort ad_script_abort (public) security::csrf::validate security::csrf::validate (public) xowiki::FormPage instproc www-file-upload xowiki::FormPage instproc www-file-upload xowiki::FormPage instproc www-file-upload->ad_script_abort xowiki::FormPage instproc www-file-upload->security::csrf::validate

    Testcases:
    No testcase defined.
  • www-toggle-modebutton (scripted, public)

     <instance of xowiki::FormPage[i]> www-toggle-modebutton

    AJAX called function, called via POST. The function toggles the state of a button in the backend. The client provides the name of the button as form field named "button". If none is provided, the button is named as default "admin"

    Partial Call Graph (max 5 caller/called nodes):
    %3

    Testcases:
    No testcase defined.
  • xowiki_form_page_id (setter)