|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
| enum EQUAL |
Definition at line 44 of file locallib.php.
| enum FORMAT_CREOLE |
Definition at line 40 of file locallib.php.
| enum FORMAT_NWIKI |
Definition at line 41 of file locallib.php.
| enum IMPROVEMENT |
Definition at line 43 of file locallib.php.
| enum LOCK_TIMEOUT |
Definition at line 47 of file locallib.php.
| enum NO_VALID_RATE |
Definition at line 42 of file locallib.php.
Definition at line 39 of file locallib.php.
| enum WORST |
Definition at line 45 of file locallib.php.
| wiki_add_comment | ( | $ | context, |
| $ | pageid, | ||
| $ | content, | ||
| $ | editor | ||
| ) |
Add comments ro database
| object | $context,. | Current context |
| int | $pageid,. | Current pageid |
| string | $content,. | Content of the comment |
| string | editor. Version of editor we are using. |
Definition at line 1176 of file locallib.php.

| wiki_add_progress | ( | $ | pageid, |
| $ | oldversionid, | ||
| $ | versionid, | ||
| $ | progress | ||
| ) |
| wiki_add_subwiki | ( | $ | wikiid, |
| $ | groupid, | ||
| $ | userid = 0 |
||
| ) |
Add a new sub wiki instance
| int | $wikiid | |
| int | $groupid |
Definition at line 96 of file locallib.php.

| wiki_build_tree | ( | $ | page, |
| $ | node, | ||
| &$ | keys | ||
| ) |
Generate wiki's page tree
| $page. | A wiki page object |
| $node. | Starting navigation_node |
| $keys. | An array to store keys |
Definition at line 1402 of file locallib.php.

| wiki_count_wiki_page_versions | ( | $ | pageid | ) |
Count the number of page version
| int | $pageid |
Definition at line 404 of file locallib.php.
| wiki_create_page | ( | $ | swid, |
| $ | title, | ||
| $ | format, | ||
| $ | userid | ||
| ) |
Create a new wiki page, if the page exists, return existing pageid
| int | $swid | |
| string | $title | |
| string | $format | |
| int | $userid |
Definition at line 322 of file locallib.php.


| wiki_delete_comment | ( | $ | idcomment, |
| $ | context, | ||
| $ | pageid | ||
| ) |
Delete comments from database
| $idcomment. | Id of comment which will be deleted |
| $context. | Current context |
| $pageid. | Current pageid |
Definition at line 1207 of file locallib.php.


Delete al comments from wiki
Definition at line 1228 of file locallib.php.

| wiki_delete_links | ( | $ | linkid = null, |
| $ | topageid = null, |
||
| $ | frompageid = null, |
||
| $ | subwikiid = null |
||
| ) |
Deletes wiki_links. It can be sepecific link or links attached in subwiki
mixed $DB database object
| int | $linkid | id of the link to be deleted |
| int | $topageid | links to the specific page |
| int | $frompageid | links from specific page |
| int | $subwikiid | links to subwiki |
Definition at line 1030 of file locallib.php.

| wiki_delete_locks | ( | $ | pageid, |
| $ | userid = null, |
||
| $ | section = null, |
||
| $ | delete_from_db = true, |
||
| $ | delete_section_and_page = false |
||
| ) |
Deletes wiki_locks that are not in use. (F.Ex. after submitting the changes). If no userid is present, it deletes ALL the wiki_locks of a specific page.
Definition at line 988 of file locallib.php.

Deletes wiki_locks that expired 1 hour ago.
Definition at line 1015 of file locallib.php.

| wiki_delete_page_versions | ( | $ | deleteversions | ) |
Delete specificed versions of a page or versions created by users if version is 0 then it will remove all versions of the page
| array | $deleteversions | delete versions for a page |
delete page-versions
Definition at line 1134 of file locallib.php.

| wiki_delete_pages | ( | $ | context, |
| $ | pageids = null, |
||
| $ | subwikiid = null |
||
| ) |
Delete pages and all related data
| mixed | $context | context in which page needs to be deleted. |
| mixed | $pageids | id's of pages to be deleted |
| int | $subwikiid | id of the subwiki for which all pages should be deleted |
Delete page and all it's relevent data
Definition at line 1078 of file locallib.php.

| wiki_delete_synonym | ( | $ | subwikiid, |
| $ | pageid = null |
||
| ) |
Delete wiki synonyms related to subwikiid or page
| int | $subwikiid | id of sunbwiki |
| int | $pageid | id of page |
Definition at line 1061 of file locallib.php.

| wiki_get_comment | ( | $ | commentid | ) |
| wiki_get_comments | ( | $ | contextid, |
| $ | pageid | ||
| ) |
Returns all comments by context and pageid
| $context. | Current context |
| $pageid. | Current pageid |
Definition at line 1162 of file locallib.php.

| wiki_get_contributions | ( | $ | swid, |
| $ | userid | ||
| ) |
Get pages which user have been edited
| int | $swid | |
| int | $userid |
Definition at line 432 of file locallib.php.
| wiki_get_current_version | ( | $ | pageid | ) |
Get latest version of wiki page
| int | $pageid |
Definition at line 140 of file locallib.php.

| wiki_get_first_page | ( | $ | subwikid, |
| $ | module = null |
||
| ) |
Get first page of wiki instace
| int | $subwikiid | |
| int | $module,wiki | instance object |
Definition at line 199 of file locallib.php.
| wiki_get_formats | ( | ) |
Text format supported by wiki module
Definition at line 556 of file locallib.php.

| wiki_get_last_version | ( | $ | pageid | ) |
Alias of wiki_get_current_version , does the exactly same thing as wiki_get_current_version, should be removed
| int | $pageid |
Definition at line 158 of file locallib.php.

| wiki_get_linked_from_pages | ( | $ | pageid | ) |
| wiki_get_linked_pages | ( | $ | pageid | ) |
Get linked pages from page
| int | $pageid |
Definition at line 1429 of file locallib.php.

| wiki_get_linked_to_pages | ( | $ | pageid | ) |
| wiki_get_missing_or_empty_pages | ( | $ | swid | ) |
Get missing or empty pages in wiki
| int | $swid | sub wiki id |
Definition at line 448 of file locallib.php.
| wiki_get_orphaned_pages | ( | $ | swid | ) |
Return a list of orphaned wikis for one specific subwiki object
| int | $swid | sub wiki id |
Definition at line 484 of file locallib.php.

| wiki_get_page | ( | $ | pageid | ) |
Get a wiki page by pageid
| int | $pageid |
Definition at line 130 of file locallib.php.
| wiki_get_page_by_title | ( | $ | swid, |
| $ | title | ||
| ) |
Get a wiki page by page title
| int | $swid,sub | wiki id |
| string | $title |
Definition at line 179 of file locallib.php.

| wiki_get_page_list | ( | $ | swid | ) |
Get pages list in wiki
| int | $swid | sub wiki id |
Definition at line 473 of file locallib.php.

| wiki_get_section_page | ( | $ | page, |
| $ | section | ||
| ) |
Get page section
| int | $pageid | |
| string | $section |
Definition at line 167 of file locallib.php.

| wiki_get_subwiki | ( | $ | subwikiid | ) |
Get a sub wiki instace by instance id
| int | $subwikiid |
Definition at line 84 of file locallib.php.

| wiki_get_subwiki_by_group | ( | $ | wikiid, |
| $ | groupid, | ||
| $ | userid = 0 |
||
| ) |
Get a sub wiki instance by wiki id and group id
| int | $wikiid | |
| int | $groupid |
Definition at line 74 of file locallib.php.

| wiki_get_subwikis | ( | $ | wikiid | ) |
Get sub wiki instances with same wiki id
| int | $wikiid |
Definition at line 63 of file locallib.php.
| wiki_get_updated_pages_by_subwiki | ( | $ | swid | ) |
| wiki_get_user_info | ( | $ | userid | ) |
Get user data
Definition at line 534 of file locallib.php.

| wiki_get_version | ( | $ | versionid | ) |
Get a version record by record id
| int | $versionid,the | version id |
Definition at line 189 of file locallib.php.

| wiki_get_wiki | ( | $ | wikiid | ) |
Get a wiki instance
| int | $wikiid | the instance id of wiki |
Definition at line 53 of file locallib.php.

| wiki_get_wiki_from_pageid | ( | $ | pageid | ) |
Get a wiki instance by pageid
| int | $pageid |
Definition at line 113 of file locallib.php.

| wiki_get_wiki_page_id | ( | $ | pageid, |
| $ | id | ||
| ) |
| wiki_get_wiki_page_version | ( | $ | pageid, |
| $ | version | ||
| ) |
Get a specific version of page
| int | $pageid | |
| int | $version |
Definition at line 384 of file locallib.php.
| wiki_get_wiki_page_versions | ( | $ | pageid, |
| $ | limitfrom, | ||
| $ | limitnum | ||
| ) |
Get version list
| int | $pageid | |
| int | $limitfrom | |
| int | $limitnum |
Definition at line 395 of file locallib.php.
| wiki_increment_pageviews | ( | $ | page | ) |
Increase page view nubmer
| int | $page,database | record |
Definition at line 543 of file locallib.php.

| wiki_is_page_section_locked | ( | $ | pageid, |
| $ | userid, | ||
| $ | section = null |
||
| ) |
Checks if a page-section is locked.
Definition at line 948 of file locallib.php.

| wiki_make_cache_expire | ( | $ | pagename | ) |
| wiki_parse_content | ( | $ | markup, |
| $ | pagecontent, | ||
| $ | options = array() |
||
| ) |
Parses a string with the wiki markup language in $markup.
Returned array contains the following fields: 'parsed_text' => String. Contains the parsed wiki content. 'unparsed_text' => String. Constains the original wiki content. 'link_count' => Array of array('destination' => ..., 'new' => "is new?"). Contains the internal wiki links found in the wiki content. 'deleted_sections' => the list of deleted sections. '' =>
Definition at line 574 of file locallib.php.


| wiki_parser_get_token | ( | $ | markup, |
| $ | name | ||
| ) |
Returns the token used by a wiki language to represent a given tag or "object" (bold -> **)
Definition at line 711 of file locallib.php.


| wiki_parser_link | ( | $ | link, |
| $ | options = null |
||
| ) |
This function is the parser callback to parse wiki links.
It returns the necesary information to print a link.
NOTE: Empty pages and non-existent pages must be print in red color.
| link | name of a page |
| $options |
Doc return and options
Definition at line 615 of file locallib.php.


| wiki_parser_real_path | ( | $ | url, |
| $ | context, | ||
| $ | component, | ||
| $ | filearea, | ||
| $ | swid | ||
| ) |
Returns an absolute path link, unless there is no such link.
| string | $url | Link's URL or filename |
| stdClass | $context | filearea params |
| string | $component | The component the file is associated with |
| string | $filearea | The filearea the file is stored in |
| int | $swid | Sub wiki id |
Definition at line 688 of file locallib.php.
| wiki_parser_table | ( | $ | table | ) |
Returns the table fully parsed (HTML)
Definition at line 652 of file locallib.php.

| wiki_print_edit_form_default_fields | ( | $ | format, |
| $ | pageid, | ||
| $ | version = -1, |
||
| $ | upload = false, |
||
| $ | deleteuploads = array() |
||
| ) |
Prints default edit form fields and buttons
| string | $format | Edit form format (html, creole...) |
| integer | $version | Version number. A negative number means no versioning. |
Definition at line 1317 of file locallib.php.


| wiki_print_page_content | ( | $ | page, |
| $ | context, | ||
| $ | subwikiid | ||
| ) |
Definition at line 1255 of file locallib.php.


| wiki_print_upload_table | ( | $ | context, |
| $ | filearea, | ||
| $ | fileitemid, | ||
| $ | deleteuploads = array() |
||
| ) |
Prints a table with the files attached to a wiki page
| object | $context | |
| string | $filearea | |
| int | $fileitemid | |
| array | deleteuploads |
Definition at line 1366 of file locallib.php.


| wiki_refresh_cachedcontent | ( | $ | page, |
| $ | newcontent = null |
||
| ) |
Definition at line 261 of file locallib.php.


| wiki_refresh_page_links | ( | $ | page, |
| $ | links | ||
| ) |
Definition at line 290 of file locallib.php.


| wiki_restore_page | ( | $ | wikipage, |
| $ | newcontent, | ||
| $ | userid | ||
| ) |
Restore a page
Definition at line 285 of file locallib.php.


| wiki_save_page | ( | $ | wikipage, |
| $ | newcontent, | ||
| $ | userid | ||
| ) |
Save page content
| object | $wikipage | |
| string | $newcontent | |
| int | $userid |
Definition at line 235 of file locallib.php.


| wiki_save_section | ( | $ | wikipage, |
| $ | sectiontitle, | ||
| $ | sectioncontent, | ||
| $ | userid | ||
| ) |
Definition at line 211 of file locallib.php.


| wiki_search_all | ( | $ | swid, |
| $ | search | ||
| ) |
Search wiki title and content
| int | $swid | sub wiki id |
| string | $search |
Definition at line 525 of file locallib.php.

| wiki_search_content | ( | $ | swid, |
| $ | search | ||
| ) |
Search wiki content
| int | $swid | sub wiki id |
| string | $search |
Definition at line 514 of file locallib.php.
| wiki_search_title | ( | $ | swid, |
| $ | search | ||
| ) |
Search wiki title
| int | $swid | sub wiki id |
| string | $search |
Definition at line 503 of file locallib.php.

| wiki_set_lock | ( | $ | pageid, |
| $ | userid, | ||
| $ | section = null, |
||
| $ | insert = false |
||
| ) |
Inserts or updates a wiki_locks record.
Definition at line 965 of file locallib.php.


| wiki_trim_string | ( | $ | text, |
| $ | limit = 25 |
||
| ) |
This function trims any given text and returns it with some dots at the end
| string | $text | |
| string | $limit |
Definition at line 1301 of file locallib.php.

| wiki_user_can_edit | ( | $ | subwiki | ) |
Checks if current user can edit a subwiki
| $subwiki |
Definition at line 813 of file locallib.php.


| wiki_user_can_view | ( | $ | subwiki | ) |
Checks if current user can view a subwiki
| $subwiki |
Definition at line 721 of file locallib.php.

