GithubHelp home page GithubHelp logo

classicvalues / moodle-report_customsql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moodleou/moodle-report_customsql

1.0 1.0 0.0 342 KB

A Moodle report plugin that lets you easily create simple reports that can be expressed as a single SQL query

PHP 86.74% CSS 0.41% Gherkin 5.19% JavaScript 2.38% Mustache 5.29%

moodle-report_customsql's Introduction

Ad-hoc database queries

This report plugin allows Administrators to set up arbitrary database queries to act as ad-hoc reports. Reports can be of two types, either run on demand, or scheduled to run automatically. Reports can be grouped into categories, which helps when you have a lot of them.

Other users with the right capability can go to Administration -> Reports -> Ad-hoc database queries and see a list of queries to which they have access. Results can be viewed on-screen or downloaded as CSV.

Reports can contain placeholders, in which case, the user running the report is presented with a form where they can enter the values to substitute for the placeholders before running the report.

Scheduled reports can also be set to be send out be email whenever they are generated.

If a column has a name ending in date and contains integer values, then they will be assumed to be unix timestamps, and formatted as dates. If a query placeholder has a name ending in date, then users will be give a date-time selector to input the value of that parameter.

Pairs of columns where one is called name, and the other called name_link_url will be displayed as a single column containing links with link text from name and the target URL from name_link_url.

You can set a limit on the maximum number of rows returned by a query (up to the hard limit of 5000).

See http://docs.moodle.org/en/Custom_SQL_queries_report for more information.

Acknowledgements

This plugin was created by the Open University (http://www.open.ac.uk/), but now has contributions from many others, as can be seen in the git log. Thanks all.

Installation and set-up

This plugin should be compatible with Moodle 3.3+.

Install from the plugins database

Install from the Moodle plugins database

Install using git

Or you can install using git. Type this commands in the root of your Moodle install

git clone https://github.com/moodleou/moodle-report_customsql.git report/customsql
echo '/report/customsql/' >> .git/info/exclude

Then run the moodle update process Site administration > Notifications

moodle-report_customsql's People

Contributors

timhunt avatar mkassaei avatar paulholden avatar troywilliams avatar jamesbrisland avatar andrewhancox avatar lucaboesch avatar mackensen avatar athompson697 avatar brendanheywood avatar tomotsuyuki avatar esemeniuc avatar sammarshallou avatar

Stargazers

Classic Values avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.