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_LINK
The Wiki+ page to select by default (null: none)
\?AUTO_LINK
The Wiki+ page to look beneath (null: the root)
string
Breadcrumbs built up so far, in recursion (blank: starting recursion)
boolean
Whether to include orphaned pages in the breadcrumbs
boolean
Whether to create a compound list (gets pairs: Tempcode, and comma-separated list of children)
boolean
Whether to use titles in IDs after a ! (used on tree edit page)
mixed
Tempcode 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_TEXT
The name of the GET parameter that stores the chain
\?string
The default value for the chain (null: no default)
array
An 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 |
---|
array
A list of pages we've already seen (we don't repeat them in multiple list positions)
\?AUTO_LINK
The page being at the root of our recursion (null: true root page)
\?string
The breadcrumbs up to this point in the recursion (null: blank, as we are starting the recursion)
\?array
The 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
boolean
Whether to collect post counts with our breadcrumbs information
boolean
Whether to make a compound list (a pair of a comma-separated list of children, and the child array)
\?integer
The number of recursive levels to search (null: all)
array
A 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 |
---|
array
The database field row of it
\ID_TEXT
The zone to use
boolean
Whether to include context (i.e. say WHAT this is, not just show the actual content)
boolean
Whether to include breadcrumbs (if there are any)
\?AUTO_LINK
Virtual root to use (null: none)
\ID_TEXT
Overridden GUID to send to templates (blank: none)
\Tempcode
A 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 |
---|
array
The database field row of it
\ID_TEXT
The zone to use
boolean
Whether to include context (i.e. say WHAT this is, not just show the actual content)
boolean
Whether to include breadcrumbs (if there are any)
\?AUTO_LINK
Virtual root to use (null: none)
\ID_TEXT
Overridden GUID to send to templates (blank: none)
\Tempcode
A 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_TEXT
The page title
\LONG_TEXT
The page description
\LONG_TEXT
Hidden notes pertaining to the page
\BINARY
Whether to hide the posts on the page by default
\?MEMBER
The member doing the action (null: current member)
\?TIME
The add time (null: now)
integer
The number of views so far
\?SHORT_TEXT
Meta keywords for this resource (null: do not edit) (blank: implicit)
\?LONG_TEXT
Meta description for this resource (null: do not edit) (blank: implicit)
\?TIME
The edit time (null: N/A)
boolean
Whether to send a notification
\AUTO_LINK
The 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_LINK
The page ID
string
The new post
\BINARY
Whether the post will be validated
\?MEMBER
The member doing the action (null: current member)
boolean
Whether to send out a notification out
\?TIME
The add time (null: now)
integer
The number of views so far
\?TIME
The edit time (null: N/A)
\AUTO_LINK
The post IDwiki_delete_page(\AUTO_LINK $id)
wiki_delete_post(\AUTO_LINK $post_id, \?MEMBER $member = null
)
package | wiki |
---|
\AUTO_LINK
The post ID
\?MEMBER
The member doing the action (null: current member)
wiki_derive_chain(\AUTO_LINK $id, \?AUTO_LINK $root = null
) : string
package | wiki |
---|
\AUTO_LINK
The ID of the page to derive a chain for
\?AUTO_LINK
Virtual root to use (null: none)
string
The 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_LINK
The page ID
\SHORT_TEXT
The page title
\LONG_TEXT
The page description
\LONG_TEXT
Hidden notes pertaining to the page
\BINARY
Whether to hide the posts on the page by default
\SHORT_TEXT
Meta keywords
\LONG_TEXT
Meta description
\?MEMBER
The member doing the action (null: current member)
\?TIME
Edit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?TIME
Add time (null: do not change)
\?integer
Views (null: do not change)
boolean
Determines 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_LINK
The post ID
string
The new post
\BINARY
Whether the post will be validated
\?MEMBER
The member doing the action (null: current member)
\?AUTO_LINK
The page ID (null: do not change)
\?TIME
Edit time (null: either means current time, or if $null_is_literal, means reset to to NULL)
\?TIME
Add time (null: do not change)
\?integer
Number of views (null: do not change)
boolean
Determines whether some NULLs passed mean 'use a default' or literally mean 'set to NULL'