. namespace mod_feedback; use stdClass; /** * Class manager for feedback * * @package mod_feedback * @copyright 2024 Mikel Martín * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class manager { /** * Get the template record from the template id * * @param int $templateid * @return stdClass */ public static function get_template_record(int $templateid): stdClass { global $DB; return $DB->get_record('feedback_template', ['id' => $templateid], '*', MUST_EXIST); } }