original_string: public static function update_competency_framework($competencyframework) {
  
          $params = self::validate_parameters(self::update_competency_framework_parameters(), array(
              'competencyframework' => $competencyframework
          ));
          $params = $params['competencyframework'];
  
          $framework = api::read_framework($params['id']);
          self::validate_context($framework->get_context());
  
          $params = (object) $params;
  
          return api::update_framework($params);
      }
code: public static function update_competency_framework($competencyframework) {
  
          $params = self::validate_parameters(self::update_competency_framework_parameters(), array(
              'competencyframework' => $competencyframework
          ));
          $params = $params['competencyframework'];
  
          $framework = api::read_framework($params['id']);
          self::validate_context($framework->get_context());
  
          $params = (object) $params;
  
          return api::update_framework($params);
      }
code_tokens: public static function update_competency_framework ( $ competencyframework ) { $ params = self :: validate_parameters ( self :: update_competency_framework_parameters ( ) , array ( 'competencyframework' => $ competencyframework ) ) ; $ params = $ params [ 'competencyframework' ] ; $ framework = api :: read_framework ( $ params [ 'id' ] ) ; self :: validate_context ( $ framework -> get_context ( ) ) ; $ params = ( object ) $ params ; return api :: update_framework ( $ params ) ; }
docstring: Update an existing competency framework
  
  @param array $competencyframework An array with all the fields for a competency framework.
  @return boolean
docstring_tokens: Update an existing competency framework