original_string: public function get_context_from_competency(competency $competency) {
          $frameworkid = $competency->get('competencyframeworkid');
          if (!isset($this->frameworkscontexts[$frameworkid])) {
              $framework = $this->get_framework_from_competency($competency);
              $this->frameworkscontexts[$frameworkid] = $framework->get_context();
          }
          return $this->frameworkscontexts[$frameworkid];
      }
code: public function get_context_from_competency(competency $competency) {
          $frameworkid = $competency->get('competencyframeworkid');
          if (!isset($this->frameworkscontexts[$frameworkid])) {
              $framework = $this->get_framework_from_competency($competency);
              $this->frameworkscontexts[$frameworkid] = $framework->get_context();
          }
          return $this->frameworkscontexts[$frameworkid];
      }
code_tokens: public function get_context_from_competency ( competency $ competency ) { $ frameworkid = $ competency -> get ( 'competencyframeworkid' ) ; if ( ! isset ( $ this -> frameworkscontexts [ $ frameworkid ] ) ) { $ framework = $ this -> get_framework_from_competency ( $ competency ) ; $ this -> frameworkscontexts [ $ frameworkid ] = $ framework -> get_context ( ) ; } return $ this -> frameworkscontexts [ $ frameworkid ] ; }
docstring: Get the context of a competency.
  
  @param competency $competency The competency.
  @return \context
docstring_tokens: Get the context of a competency .