markdown-image-procs.tcl

Stage clipboard images and attach them when their XoWiki page is saved.

Location:
packages/xowiki/tcl/markdown-image-procs.tcl

Procedures in this file

Detailed information

xowiki::markdown_image::attach (private)

 xowiki::markdown_image::attach page drafts

Save each staged image as an attachment owned by this page.

Parameters:
page (required)
drafts (required)

Partial Call Graph (max 5 caller/called nodes):
xowiki::Page instproc save_new xowiki::Page instproc save_new (public) xowiki::markdown_image::attach xowiki::markdown_image::attach xowiki::Page instproc save_new->xowiki::markdown_image::attach ad_conn ad_conn (public) xowiki::markdown_image::attach->ad_conn attachments::richtext::file_attach attachments::richtext::file_attach (public) xowiki::markdown_image::attach->attachments::richtext::file_attach

Testcases:
No testcase defined.

xowiki::markdown_image::directory (private)

 xowiki::markdown_image::directory

Return the temporary directory for pasted XoWiki images.

Partial Call Graph (max 5 caller/called nodes):
xowiki::markdown_image::draft_path xowiki::markdown_image::draft_path (private) xowiki::markdown_image::directory xowiki::markdown_image::directory xowiki::markdown_image::draft_path->xowiki::markdown_image::directory xowiki::markdown_image::expire_drafts xowiki::markdown_image::expire_drafts (private) xowiki::markdown_image::expire_drafts->xowiki::markdown_image::directory

Testcases:
No testcase defined.

xowiki::markdown_image::discard_attached_draft (private)

 xowiki::markdown_image::discard_attached_draft object_id image_id path

Drop a staging file after the page and attachment commit.

Parameters:
object_id (required)
image_id (required)
path (required)

Partial Call Graph (max 5 caller/called nodes):
db_string db_string (public) xowiki::markdown_image::discard_attached_draft xowiki::markdown_image::discard_attached_draft xowiki::markdown_image::discard_attached_draft->db_string

Testcases:
No testcase defined.

xowiki::markdown_image::draft_path (private)

 xowiki::markdown_image::draft_path image_id

Find the staged image for the current user and XoWiki instance.

Parameters:
image_id (required)

Partial Call Graph (max 5 caller/called nodes):
xowiki::markdown_image::drafts xowiki::markdown_image::drafts (private) xowiki::markdown_image::draft_path xowiki::markdown_image::draft_path xowiki::markdown_image::drafts->xowiki::markdown_image::draft_path ad_conn ad_conn (public) xowiki::markdown_image::draft_path->ad_conn xowiki::markdown_image::directory xowiki::markdown_image::directory (private) xowiki::markdown_image::draft_path->xowiki::markdown_image::directory

Testcases:
No testcase defined.

xowiki::markdown_image::drafts (private)

 xowiki::markdown_image::drafts page

Collect this user's staged inline images referenced by the page and its form fields.

Parameters:
page (required)

Partial Call Graph (max 5 caller/called nodes):
xowiki::Page instproc save_new xowiki::Page instproc save_new (public) xowiki::markdown_image::drafts xowiki::markdown_image::drafts xowiki::Page instproc save_new->xowiki::markdown_image::drafts acs_object_type acs_object_type (public) xowiki::markdown_image::drafts->acs_object_type ad_conn ad_conn (public) xowiki::markdown_image::drafts->ad_conn xowiki::markdown_image::draft_path xowiki::markdown_image::draft_path (private) xowiki::markdown_image::drafts->xowiki::markdown_image::draft_path xowiki::markdown_image::mime_type xowiki::markdown_image::mime_type (private) xowiki::markdown_image::drafts->xowiki::markdown_image::mime_type

Testcases:
No testcase defined.

xowiki::markdown_image::expire_drafts (private)

 xowiki::markdown_image::expire_drafts

Clean up private staging files, including uploads from abandoned forms.

Partial Call Graph (max 5 caller/called nodes):
xowiki::markdown_image::directory xowiki::markdown_image::directory (private) xowiki::markdown_image::expire_drafts xowiki::markdown_image::expire_drafts xowiki::markdown_image::expire_drafts->xowiki::markdown_image::directory

Testcases:
No testcase defined.

xowiki::markdown_image::mime_type (private)

 xowiki::markdown_image::mime_type path

Identify a supported bitmap by its contents.

Parameters:
path (required)

Partial Call Graph (max 5 caller/called nodes):
xowiki::markdown_image::drafts xowiki::markdown_image::drafts (private) xowiki::markdown_image::mime_type xowiki::markdown_image::mime_type xowiki::markdown_image::drafts->xowiki::markdown_image::mime_type

Testcases:
No testcase defined.
[ show source ]