[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/forum/classes/search/ -> post.php (summary)

Forum posts search area

Copyright: 2015 David Monllao {@link http://www.davidmonllao.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 265 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

post:: (10 methods):
  get_recordset_by_timestamp()
  get_document()
  uses_file_indexing()
  attach_files()
  check_access()
  get_doc_url()
  get_context_url()
  get_post()
  get_forum()
  get_discussion()


Class: post  - X-Ref

Forum posts search area.

get_recordset_by_timestamp($modifiedfrom = 0)   X-Ref
Returns recordset containing required data for indexing forum posts.

param: int $modifiedfrom timestamp
return: moodle_recordset

get_document($record, $options = array()   X-Ref
Returns the document associated with this post id.

param: stdClass $record Post info.
param: array    $options
return: \core_search\document

uses_file_indexing()   X-Ref
Returns true if this area uses file indexing.

return: bool

attach_files($document)   X-Ref
Add the forum post attachments.

param: document $document The current document
return: null

check_access($id)   X-Ref
Whether the user can access the document or not.

param: int $id Forum post id
return: bool

get_doc_url(\core_search\document $doc)   X-Ref
Link to the forum post discussion

param: \core_search\document $doc
return: \moodle_url

get_context_url(\core_search\document $doc)   X-Ref
Link to the forum.

param: \core_search\document $doc
return: \moodle_url

get_post($postid)   X-Ref
Returns the specified forum post from its internal cache.

param: int $postid
return: stdClass

get_forum($forumid)   X-Ref
Returns the specified forum checking the internal cache.

Store minimal information as this might grow.

param: int $forumid
return: stdClass

get_discussion($discussionid)   X-Ref
Returns the discussion checking the internal cache.

param: int $discussionid
return: stdClass



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1