Skip to content

Commit

Permalink
intial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-suresh committed Jan 29, 2021
0 parents commit 2b7c28a
Show file tree
Hide file tree
Showing 13 changed files with 781 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
63 changes: 63 additions & 0 deletions .travis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
language: php
dist: bionic
sudo: required
services:
- mysql
addons:
firefox: "47.0.1"
postgresql: "9.6"
chrome: stable
apt:
packages:
- openjdk-8-jre-headless
- chromium-chromedriver
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
php:
- 7.2
env:
- DB=pgsql MOODLE_BRANCH=master
- DB=mysqli MOODLE_BRANCH=master
- DB=mariadb MOODLE_BRANCH=master
matrix:
include:
- php: 7.1
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
- php: 7.2
env: DB=pgsql MOODLE_BRANCH=MOODLE_39_STABLE
- php: 7.3
env: DB=pgsql MOODLE_BRANCH=master
before_install:
- phpenv config-rm xdebug.ini
- nvm install 8.9
- nvm use 8.9
- cd ../..
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://127.0.0.1 &
install:
- moodle-plugin-ci add-plugin --clone https://github.com/ewallah/moodle-local_aws.git
- moodle-plugin-ci install
script:
- /home/travis/build/moodle/vendor/bin/phpunit "provider_testcase" /home/travis/build/moodle/privacy/tests/provider_test.php
- /home/travis/build/moodle/vendor/bin/phpunit "tool_dataprivacy_expired_contexts_testcase" /home/travis/build/moodle/admin/tool/dataprivacy/tests/expired_contexts_test.php
- moodle-plugin-ci phplint
- moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd
- moodle-plugin-ci phpdoc
- moodle-plugin-ci codechecker
- moodle-plugin-ci validate
- moodle-plugin-ci savepoints
- moodle-plugin-ci mustache
- moodle-plugin-ci grunt
- moodle-plugin-ci phpunit --coverage-text
- moodle-plugin-ci behat
- moodle-plugin-ci behat --profile chrome
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# My Courses Moodle Plugin

This plugin provide a page with all enrolled courses and progress which can be added to Moodle navigation

## Usage

Install the plugin from your Moodle Administration page
Add a navigation link to your Moodle to view the page:
https://yourmoodlelms.com/report/mycourse/index.php

## Description

One of the great benefit of using this plugin is it show all courses a user enrolled in one page along with the course category and current completion progress.

## Settings
There is no setting available for this plugin

## Contributing
Feel free to contribute by:
* Submitting translations to the [Moodle AMOS translator](https://lang.moodle.org/local/amos/view.php)
* Testing and creating issues. But remember to check if the issues is already
reported before creating a new one. Perhaps you can contribute to an already
existing issue?
* Solving issues and submitting code through Pull Requests to the 'master' branch or on a separate feature branch.
Binary file added classes/.DS_Store
Binary file not shown.
47 changes: 47 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Privacy Subsystem implementation for report_mycourses.
*
* @package report
* @subpackage mycourses
* @copyright 2021 onwards Sam Suresh {@link https://modernlms.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace report_mycourses\privacy;

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

/**
* Privacy Subsystem for report_mycourses implementing null_provider.
*
* @copyright 2018 Zig Tan <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements \core_privacy\local\metadata\null_provider {

/**
* Get the language string identifier with the component's language
* file to explain why this plugin stores no data.
*
* @return string
*/
public static function get_reason() : string {
return 'privacy:metadata';
}
}
Binary file added img/.DS_Store
Binary file not shown.
Binary file added img/new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2b7c28a

Please sign in to comment.