Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
backup_question_dbops Class Reference

Non instantiable helper class providing DB support to the questions backup stuff. More...

Inheritance diagram for backup_question_dbops:
backup_dbops

Static Public Member Functions

static calculate_question_categories ($backupid, $contextid)
 Calculates all the question_categories to be included in backup, based in a given context (course/module) and the already annotated questions present in backup_ids_temp.
 
static delete_temp_questions ($backupid)
 Delete all the annotated questions present in backup_ids_temp.
 

Static Protected Member Functions

static get_parent_categories (int $categoryid)
 Recursively find the parents and ancestors of the given category.
 

Detailed Description

Non instantiable helper class providing DB support to the questions backup stuff.

This class contains various static methods available for all the DB operations performed by questions stuff

TODO: Finish phpdocs

Member Function Documentation

◆ get_parent_categories()

static backup_question_dbops::get_parent_categories ( int $categoryid)
staticprotected

Recursively find the parents and ancestors of the given category.

Parameters
int$categoryidThe category we want to find parents for.
Return values
arrayid => parentid for each category

The documentation for this class was generated from the following file: