/** * Preloads context information from db record and strips the cached info. * * The db request has to contain all columns from context_helper::get_preload_record_columns(). * * @static * @param stdClass $rec * @return void (modifies $rec) */ public static function preload_from_record(stdClass $rec) { context::preload_from_record($rec); }