Skip to content

Commit

Permalink
MDL-61877 core_competency: Implement privacy API
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz committed Apr 27, 2018
1 parent 641d113 commit f8a6a53
Show file tree
Hide file tree
Showing 4 changed files with 3,787 additions and 0 deletions.
12 changes: 12 additions & 0 deletions competency/classes/external/performance_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
defined('MOODLE_INTERNAL') || die();

use core_competency\competency;
use core_competency\competency_framework;

/**
* Performance helper class.
Expand Down Expand Up @@ -108,4 +109,15 @@ public function get_scale_from_competency(competency $competency) {
return $this->scales[$scaleid];
}

/**
* Ingest a framework to avoid additional fetching.
*
* @param competency_framework $framework The framework.
* @return void
*/
public function ingest_framework(competency_framework $framework) {
$id = $framework->get('id');
$this->frameworks[$id] = $framework;
}

}
Loading

0 comments on commit f8a6a53

Please sign in to comment.