Search area for mod_wiki collaborative pages.
Copyright: | 2016 Eric Merrill {@link http://www.merrilldigital.com} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 220 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
collaborative_page:: (8 methods):
get_document_recordset()
get_document()
check_access()
get_doc_url()
get_context_url()
uses_file_indexing()
get_search_fileareas()
supports_group_restriction()
Class: collaborative_page - X-Ref
Search area for mod_wiki collaborative pages.get_document_recordset($modifiedfrom = 0, \context $context = null) X-Ref |
Returns a recordset with all required page information. param: int $modifiedfrom param: \context|null $context Optional context to restrict scope of returned results return: moodle_recordset|null Recordset (or null if no results) |
get_document($record, $options = array() X-Ref |
Returns the document for a particular page. param: \stdClass $record A record containing, at least, the indexed document id and a modified timestamp param: array $options Options for document creation return: \core_search\document |
check_access($id) X-Ref |
Can the current user see the document. param: int $id The internal search area entity id. return: bool True if the user can see it, false otherwise |
get_doc_url(\core_search\document $doc) X-Ref |
Returns a url to the page. param: \core_search\document $doc return: \moodle_url |
get_context_url(\core_search\document $doc) X-Ref |
Returns a url to the wiki. param: \core_search\document $doc return: \moodle_url |
uses_file_indexing() X-Ref |
Returns true if this area uses file indexing. return: bool |
get_search_fileareas() X-Ref |
Return the context info required to index files for this search area. return: array |
supports_group_restriction() X-Ref |
Confirms that data entries support group restrictions. return: bool True |