original_string: public static function set_parent_competency($competencyid, $parentid) {
          $params = self::validate_parameters(self::set_parent_competency_parameters(), array(
              'competencyid' => $competencyid,
              'parentid' => $parentid
          ));
  
          $competency = api::read_competency($params['competencyid']);
          self::validate_context($competency->get_context());
  
          return api::set_parent_competency($params['competencyid'], $params['parentid']);
      }
code: public static function set_parent_competency($competencyid, $parentid) {
          $params = self::validate_parameters(self::set_parent_competency_parameters(), array(
              'competencyid' => $competencyid,
              'parentid' => $parentid
          ));
  
          $competency = api::read_competency($params['competencyid']);
          self::validate_context($competency->get_context());
  
          return api::set_parent_competency($params['competencyid'], $params['parentid']);
      }
code_tokens: public static function set_parent_competency ( $ competencyid , $ parentid ) { $ params = self :: validate_parameters ( self :: set_parent_competency_parameters ( ) , array ( 'competencyid' => $ competencyid , 'parentid' => $ parentid ) ) ; $ competency = api :: read_competency ( $ params [ 'competencyid' ] ) ; self :: validate_context ( $ competency -> get_context ( ) ) ; return api :: set_parent_competency ( $ params [ 'competencyid' ] , $ params [ 'parentid' ] ) ; }
docstring: Move the competency to a new parent.
  
  @param int $competencyid Competency id.
  @param int $parentid Parent id.
  
  @return bool
docstring_tokens: Move the competency to a new parent .