original_string: public static function view_assign($assignid) {
          $warnings = array();
          $params = array(
              'assignid' => $assignid,
          );
          $params = self::validate_parameters(self::view_assign_parameters(), $params);
  
          list($assign, $course, $cm, $context) = self::validate_assign($params['assignid']);
  
          $assign->set_module_viewed();
  
          $result = array();
          $result['status'] = true;
          $result['warnings'] = $warnings;
          return $result;
      }
code: public static function view_assign($assignid) {
          $warnings = array();
          $params = array(
              'assignid' => $assignid,
          );
          $params = self::validate_parameters(self::view_assign_parameters(), $params);
  
          list($assign, $course, $cm, $context) = self::validate_assign($params['assignid']);
  
          $assign->set_module_viewed();
  
          $result = array();
          $result['status'] = true;
          $result['warnings'] = $warnings;
          return $result;
      }
code_tokens: public static function view_assign ( $ assignid ) { $ warnings = array ( ) ; $ params = array ( 'assignid' => $ assignid , ) ; $ params = self :: validate_parameters ( self :: view_assign_parameters ( ) , $ params ) ; list ( $ assign , $ course , $ cm , $ context ) = self :: validate_assign ( $ params [ 'assignid' ] ) ; $ assign -> set_module_viewed ( ) ; $ result = array ( ) ; $ result [ 'status' ] = true ; $ result [ 'warnings' ] = $ warnings ; return $ result ; }
docstring: Update the module completion status.
  
  @param int $assignid assign instance id
  @return array of warnings and status result
  @since Moodle 3.2
docstring_tokens: Update the module completion status .