cwarwicker / moodle-block_quick_course Goto Github PK
View Code? Open in Web Editor NEWQuick Course search block for Moodle
License: GNU General Public License v3.0
Quick Course search block for Moodle
License: GNU General Public License v3.0
Although the block can only be used by users who are of the teacher archetype in the given context, not all teachers can view all courses. So we need to check this before displaying. The core_course_search_courses webservice should help with this
just add
$this->page->requires->jquery();
in block_quick_course.php
If user is enrolled to Cat A, with Cat A.1 below it. Only searches courses directly in Cat A, not Cat A.1 or below.
Some of the tests run by the Moodle.org plugins db can be run via travis-ci on each commit in your github repo. Enabling Travis integration helps you to make sure future changes to your plugin will continue to follow the guidelines.
More information on this is here:
https://moodle.org/mod/forum/discuss.php?d=323384
but the short version:
grab this file:
https://github.com/moodlerooms/moodle-plugin-ci/blob/master/.travis.dist.yml
rename it as .travis.yml and put in the root of your github directory.
Go to:
https://travis-ci.org/profile/YOUR_GITHUB_USERNAME
Flick the switch for this repo.
then on every commit you make to github it will fire off a request to travis to run the tests in .travis.yml and will give you traffic lights beside each commit and generate a report.
something else you might want to change:
in .travis.yml the default file has this line:
env:
global:
MOODLE_BRANCH=MOODLE_35_STABLE
you might want to add other branches to that list - so you might want to change it something like:
env:
global:
MOODLE_BRANCH=MOODLE_35_STABLE
MOODLE_BRANCH=MOODLE_36_STABLE
MOODLE_BRANCH=MOODLE_37_STABLE
Moodle uses sentence case - stuff like:
$string['participants'] = 'View Course Participants';
should probably be :
$string['participants'] = 'View course participants';
This does not block approval in the plugins db.
Moodle uses a privacy API for GDPR compliance to allow plugins to specify how they deal with user data. It doesn't look like your plugin stores user data so you should be able to implement the simple null provider.
Sites that use continuous integration processes will not be able to use your plugin because Moodle runs unit tests which check to see if all extra plugins include the privacy class.
More information on the privacy class is here:
https://docs.moodle.org/dev/Privacy_API
please note this is not a block for approval in the plugins db at this stage.
settings.php is included in a lot of places - it improves efficiency to wrap your settings in a call to:
if ($ADMIN->fulltree) {
see other block settings.php files for examples.
Would be good to see a screenshot of your "relationships" page in the plugins db!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.