create_selection_list_wiki_page_tree
dispatch_wiki_page_notification
dispatch_wiki_post_notification
get_num_wiki_pages
get_num_wiki_posts
get_param_wiki_chain
get_wiki_page_tree
render_wiki_page_box
render_wiki_post_box
wiki_add_page
wiki_add_post
wiki_breadcrumbs
wiki_delete_page
wiki_delete_post
wiki_derive_chain
wiki_edit_page
wiki_edit_post
create_selection_list_wiki_page_tree(\?AUTO_LINK $select= null, \?AUTO_LINK $id= null, string $breadcrumbs= '', boolean $include_orphans= true, boolean $use_compound_list= false, boolean $ins_format= false) : mixed
| package | wiki |
|---|
\?AUTO_LINKThe Wiki+ page to select by default (null: none)
\?AUTO_LINKThe Wiki+ page to look beneath (null: the root)
stringBreadcrumbs built up so far, in recursion (blank: starting recursion)
booleanWhether to include orphaned pages in the breadcrumbs
booleanWhether to create a compound list (gets pairs: Tempcode, and comma-separated list of children)
booleanWhether to use titles in IDs after a ! (used on tree edit page)
mixedTempcode for the list / pair of Tempcode and compounddispatch_wiki_page_notification(\AUTO_LINK $page_id, \ID_TEXT $type)
dispatch_wiki_post_notification(\AUTO_LINK $post_id, \ID_TEXT $type)
get_num_wiki_pages() : integer
get_num_wiki_posts() : integer
get_param_wiki_chain(\ID_TEXT $parameter_name, \?string $default_value = null) : array
| package | wiki |
|---|
\ID_TEXTThe name of the GET parameter that stores the chain
\?stringThe default value for the chain (null: no default)
arrayAn array of two elements: an ID and a chainget_wiki_page_tree(array $wiki_seen, \?AUTO_LINK $page_id= null, \?string $breadcrumbs= null, \?array $page_details= null, boolean $do_stats= false, boolean $use_compound_list= false, \?integer $levels= null) : array
| package | wiki |
|---|
arrayA list of pages we've already seen (we don't repeat them in multiple list positions)
\?AUTO_LINKThe page being at the root of our recursion (null: true root page)
\?stringThe breadcrumbs up to this point in the recursion (null: blank, as we are starting the recursion)
\?arrayThe details of the $page_id we are currently going through (null: look it up). This is here for efficiency reasons, as finding children IDs to recurse to also reveals the childs title
booleanWhether to collect post counts with our breadcrumbs information
booleanWhether to make a compound list (a pair of a comma-separated list of children, and the child array)
\?integerThe number of recursive levels to search (null: all)
arrayA list of maps for all subcategories. Each map entry containins the fields 'id' (category ID) and 'breadcrumbs' (path to the category, including the categories own title). There is also an additional 'downloadcount' entry if stats were requestedrender_wiki_page_box(array $row, \ID_TEXT $zone= '_SEARCH', boolean $give_context= true, boolean $include_breadcrumbs= true, \?AUTO_LINK $root= null, \ID_TEXT $guid= '') : \Tempcode
| package | wiki |
|---|
arrayThe database field row of it
\ID_TEXTThe zone to use
booleanWhether to include context (i.e. say WHAT this is, not just show the actual content)
booleanWhether to include breadcrumbs (if there are any)
\?AUTO_LINKVirtual root to use (null: none)
\ID_TEXTOverridden GUID to send to templates (blank: none)
\TempcodeA box for it, linking to the full pagerender_wiki_post_box(array $row, \ID_TEXT $zone= '_SEARCH', boolean $give_context= true, boolean $include_breadcrumbs= true, \?AUTO_LINK $root= null, \ID_TEXT $guid= '') : \Tempcode
| package | wiki |
|---|
arrayThe database field row of it
\ID_TEXTThe zone to use
booleanWhether to include context (i.e. say WHAT this is, not just show the actual content)
booleanWhether to include breadcrumbs (if there are any)
\?AUTO_LINKVirtual root to use (null: none)
\ID_TEXTOverridden GUID to send to templates (blank: none)
\TempcodeA box for it, linking to the full pagewiki_add_page(\SHORT_TEXT $title, \LONG_TEXT $description, \LONG_TEXT $notes, \BINARY $hide_posts, \?MEMBER $member= null, \?TIME $add_time= null, integer $views= 0, \?SHORT_TEXT $meta_keywords= '', \?LONG_TEXT $meta_description= '', \?TIME $edit_date= null, boolean $send_notification= true) : \AUTO_LINK
| package | wiki |
|---|
\SHORT_TEXTThe page title
\LONG_TEXTThe page description
\LONG_TEXTHidden notes pertaining to the page
\BINARYWhether to hide the posts on the page by default
\?MEMBERThe member doing the action (null: current member)
\?TIMEThe add time (null: now)
integerThe number of views so far
\?SHORT_TEXTMeta keywords for this resource (null: do not edit) (blank: implicit)
\?LONG_TEXTMeta description for this resource (null: do not edit) (blank: implicit)
\?TIMEThe edit time (null: N/A)
booleanWhether to send a notification
\AUTO_LINKThe page IDwiki_add_post(\AUTO_LINK $page_id, string $message, \BINARY $validated= 1, \?MEMBER $member= null, boolean $send_notification= true, \?TIME $add_time= null, integer $views= 0, \?TIME $edit_date= null) : \AUTO_LINK
| package | wiki |
|---|
\AUTO_LINKThe page ID
stringThe new post
\BINARYWhether the post will be validated
\?MEMBERThe member doing the action (null: current member)
booleanWhether to send out a notification out
\?TIMEThe add time (null: now)
integerThe number of views so far
\?TIMEThe edit time (null: N/A)
\AUTO_LINKThe post IDwiki_delete_page(\AUTO_LINK $id)
wiki_delete_post(\AUTO_LINK $post_id, \?MEMBER $member = null)
| package | wiki |
|---|
\AUTO_LINKThe post ID
\?MEMBERThe member doing the action (null: current member)
wiki_derive_chain(\AUTO_LINK $id, \?AUTO_LINK $root = null) : string
| package | wiki |
|---|
\AUTO_LINKThe ID of the page to derive a chain for
\?AUTO_LINKVirtual root to use (null: none)
stringThe Wiki+ chain derivedwiki_edit_page(\AUTO_LINK $id, \SHORT_TEXT $title, \LONG_TEXT $description, \LONG_TEXT $notes, \BINARY $hide_posts, \SHORT_TEXT $meta_keywords, \LONG_TEXT $meta_description, \?MEMBER $member= null, \?TIME $edit_time= null, \?TIME $add_time= null, \?integer $views= null, boolean $null_is_literal= false)
| package | wiki |
|---|
\AUTO_LINKThe page ID
\SHORT_TEXTThe page title
\LONG_TEXTThe page description
\LONG_TEXTHidden notes pertaining to the page
\BINARYWhether to hide the posts on the page by default
\SHORT_TEXTMeta keywords
\LONG_TEXTMeta description
\?MEMBERThe member doing the action (null: current member)
\?TIMEEdit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?TIMEAdd time (null: do not change)
\?integerViews (null: do not change)
booleanDetermines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'
wiki_edit_post(\AUTO_LINK $id, string $message, \BINARY $validated, \?MEMBER $member= null, \?AUTO_LINK $page_id= null, \?TIME $edit_time= null, \?TIME $add_time= null, \?integer $views= null, boolean $null_is_literal= false)
| package | wiki |
|---|
\AUTO_LINKThe post ID
stringThe new post
\BINARYWhether the post will be validated
\?MEMBERThe member doing the action (null: current member)
\?AUTO_LINKThe page ID (null: do not change)
\?TIMEEdit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?TIMEAdd time (null: do not change)
\?integerNumber of views (null: do not change)
booleanDetermines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'