See Release Notes
Long Term Support Release
Forum vault class.
Copyright: | 2019 Ryan Wyllie <ryan@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 199 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
forum:: (7 methods):
get_table_alias()
generate_get_records_sql()
get_preprocessors()
from_db_records()
get_from_course_module_id()
get_from_course_module_ids()
get_from_post_id()
get_table_alias() X-Ref |
Get the table alias. return: string |
generate_get_records_sql(string $wheresql = null, string $sortsql = null, ?int $userid = null) X-Ref |
Build the SQL to be used in get_records_sql. param: string|null $wheresql Where conditions for the SQL param: string|null $sortsql Order by conditions for the SQL param: int|null $userid The user ID return: string |
get_preprocessors() X-Ref |
Get a list of preprocessors to execute on the DB results before being converted into entities. return: array |
from_db_records(array $results) X-Ref |
Convert the DB records into forum entities. param: array $results The DB records return: forum_entity[] |
get_from_course_module_id(int $id) X-Ref |
Get the forum for the given course module id. param: int $id The course module id return: forum_entity|null |
get_from_course_module_ids(array $ids) X-Ref |
Get the forums for the given course module ids param: int[] $ids The course module ids return: forum_entity[] |
get_from_post_id(int $id) X-Ref |
Get the forum entity for the given post id. param: int $id The course module id return: forum_entity|null |