Skip to content

Commit

Permalink
Contact Form is now compatible with Moodle 4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Apr 26, 2022
1 parent 93408cc commit 2301416
Show file tree
Hide file tree
Showing 10 changed files with 199 additions and 67 deletions.
182 changes: 177 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,177 @@
/lang/*
!/lang/en
*.swp
vendor
.vscode
##### Only include English
/lang/*
!/lang/en

##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Windows shortcuts
*.lnk

# Test file.
test.php

# KDE directory preferences
.directory

##### MacOS
# General
.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

##### Backup
*.bak
*.bakup
*.gho
*.old
*.ori
*.orig
*.original
*.tmp
*.temp

# Log file - the following switch allows to specify the file that will be
# used to write all messages from simulation: -l <filename>
*.log

##### Dropbox
# Dropbox settings and caches
.dropbox
.dropbox.attr
.dropbox.cache

##### Vim
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

##### Emacs
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

##### SublimeText
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project

##### TextMate
*.tmproj
*.tmproject
tmtags

##### VisualStudioCode
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

##### NetBeans
**/nbproject/private/
**/nbproject/Makefile-*.mk
**/nbproject/Package-*.bash
build/
nbbuild/
dist/
nbdist/
.nb-gradle/

##### JetBrains
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

##### Eclipse
.metadata
bin/
tmp/
*~.nib
local.properties
.settings/
.loadpath
.recommenders

##### Dreamweaver
# DW Dreamweaver added files
_notes
_compareTemp
configs/
dwsync.xml
dw_php_codehinting.config
*.mno

##### CodeKit
# General CodeKit files to ignore
config.codekit
config.codekit3
/min

##### Composer
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
composer.lock

##### PHP CodeSniffer
# gitignore for the PHP Codesniffer framework
# website: https://github.com/squizlabs/PHP_CodeSniffer
#
# Recommended template: PHP.gitignore

/wpcs/*
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.2.2] - 2022-04-25

### Updated
- Removed db directory as this plugin does not use any tables.
- .gitignore
- Copyright notice to 2022.
- Compatible with Moodle 3.0 to 4.0.
-
## [1.2.1] - 2021-05-23
### Updated
- Added FAQ information to the README.md on how to fix *sesskey* errors.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Local Contact Form plugin for Moodle
====================================
![PHP](https://img.shields.io/badge/PHP-v5.6%20%2F%20v7.0%20%2F%20v7.1%20%2F%207.2%20%2F%207.3%20%2F%207.4-blue.svg)
![Moodle](https://img.shields.io/badge/Moodle-v3.0%20to%20v3.10-orange.svg)
![Moodle](https://img.shields.io/badge/Moodle-v3.0%20to%20v4.0-orange.svg)
[![GitHub Issues](https://img.shields.io/github/issues/michael-milette/moodle-local_contact.svg)](https://github.com/michael-milette/moodle-local_contact/issues)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-green.svg)](#contributing)
[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](#license)
Expand Down Expand Up @@ -619,7 +619,7 @@ https://github.com/michael-milette/moodle-local_contact

# License

Copyright © 2016-2021 TNG Consulting Inc. - https://www.tngconsulting.ca/
Copyright © 2016-2022 TNG Consulting Inc. - https://www.tngconsulting.ca/

This file is part of the Contact Form plugin for Moodle - https://moodle.org/plugins/local_contact/

Expand All @@ -636,4 +636,4 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Contact Form. If not, see <https://www.gnu.org/licenses/>.

[(Back to top)](#table-of-contents)
[(Back to top)](#table-of-contents)
7 changes: 2 additions & 5 deletions classes/local_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@
* This plugin for Moodle is used to send emails through a web form.
*
* @package local_contact
* @copyright 2016-2021 TNG Consulting Inc. - www.tngconsulting.ca
* @copyright 2016-2022 TNG Consulting Inc. - www.tngconsulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
* local_contact class. Handles processing of information submitted from a web form.
* @copyright 2016-2021 TNG Consulting Inc. - www.tngconsulting.ca
* @copyright 2016-2022 TNG Consulting Inc. - www.tngconsulting.ca
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class local_contact {
Expand Down
10 changes: 3 additions & 7 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@
* Privacy Subsystem implementation for local_contact.
*
* @package local_contact
* @copyright 2015-2020 TNG Consulting Inc. - www.tngcosulting.ca
* @copyright 2015-2022 TNG Consulting Inc. - www.tngcosulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace local_contact\privacy;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy Subsystem for local_contact implementing null_provider.
*
* @copyright 2018 TNG Consulting Inc. <www.tngconsulting.ca>
* @copyright 2022 TNG Consulting Inc. <www.tngconsulting.ca>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements \core_privacy\local\metadata\null_provider {
Expand All @@ -44,4 +40,4 @@ class provider implements \core_privacy\local\metadata\null_provider {
public static function get_reason() : string {
return 'privacy:metadata';
}
}
}
40 changes: 0 additions & 40 deletions db/upgrade.php

This file was deleted.

2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* This plugin for Moodle is used to send emails through a web form.
*
* @package local_contact
* @copyright 2016-2021 TNG Consulting Inc. - www.tngconsulting.ca
* @copyright 2016-2022 TNG Consulting Inc. - www.tngconsulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
2 changes: 1 addition & 1 deletion lang/en/local_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* This plugin for Moodle is used to send emails through a web form.
*
* @package local_contact
* @copyright 2016-2021 TNG Consulting Inc. - www.tngconsulting.ca
* @copyright 2016-2022 TNG Consulting Inc. - www.tngconsulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* This plugin for Moodle is used to send emails through a web form.
*
* @package local_contact
* @copyright 2016-2021 TNG Consulting Inc. - www.tngconsulting.ca
* @copyright 2016-2022 TNG Consulting Inc. - www.tngconsulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down Expand Up @@ -92,4 +92,3 @@
$settings->add($setting);
}
}

6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
* Version information for Contact Form (also called Contact).
*
* @package local_contact
* @copyright 2016-2021 TNG Consulting Inc. - www.tngconsulting.ca
* @copyright 2016-2022 TNG Consulting Inc. - www.tngconsulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

$plugin->component = 'local_contact'; // To check on upgrade, that module sits in correct place.
$plugin->version = 2021052300; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2022042501; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2015111600; // Requires Moodle version 3.0.
$plugin->release = '1.2.1';
$plugin->release = '1.2.2';
$plugin->maturity = MATURITY_STABLE;
$plugin->cron = 0;

0 comments on commit 2301416

Please sign in to comment.