Skip to content

Commit

Permalink
Refactor for MOODLE41 & PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
luukverhoeven committed Dec 11, 2023
1 parent 64e568b commit 26aac8e
Show file tree
Hide file tree
Showing 147 changed files with 567 additions and 573 deletions.
3 changes: 0 additions & 3 deletions block_configurable_reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class block_configurable_reports extends block_list {

Expand Down
1 change: 0 additions & 1 deletion classes/github.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class github extends \curl {

Expand Down
2 changes: 0 additions & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
use core_privacy\local\request\userlist;
use core_privacy\local\request\writer;

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

/**
* Implementation of the privacy plugin provider for the configurable report block.
*
Expand Down
4 changes: 0 additions & 4 deletions component.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurablereports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @date 2009
Expand All @@ -31,8 +29,6 @@
*/
abstract class component_base {

// TODO namespace

/**
* @var bool
*/
Expand Down
3 changes: 0 additions & 3 deletions components/calcs/average/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand All @@ -32,7 +30,6 @@
* @package block_configurable_reports
*
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class average_form extends moodleform {

Expand Down
3 changes: 0 additions & 3 deletions components/calcs/average/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand All @@ -27,7 +25,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugin_average extends plugin_base {

Expand Down
3 changes: 0 additions & 3 deletions components/calcs/component.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand All @@ -27,7 +25,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class component_calcs extends component_base {

Expand Down
8 changes: 4 additions & 4 deletions components/calcs/max/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
Expand All @@ -31,7 +32,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class max_form extends moodleform {

Expand Down
8 changes: 4 additions & 4 deletions components/calcs/max/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
require_once($CFG->dirroot . '/blocks/configurable_reports/plugin.class.php');
Expand All @@ -29,7 +30,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugin_max extends plugin_base {

Expand Down
8 changes: 4 additions & 4 deletions components/calcs/min/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
Expand All @@ -31,7 +32,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class min_form extends moodleform {

Expand Down
8 changes: 4 additions & 4 deletions components/calcs/min/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
require_once($CFG->dirroot . '/blocks/configurable_reports/plugin.class.php');
Expand All @@ -29,7 +30,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugin_min extends plugin_base {

Expand Down
7 changes: 3 additions & 4 deletions components/calcs/percent/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author David Pesce <[email protected]>
* @date 2019
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author David Pesce <[email protected]>
*/

defined('MOODLE_INTERNAL') || die;
Expand All @@ -31,7 +31,6 @@
*
* @package block_configurable_reports
* @author David Pesce <[email protected]>
* @date 2019
* /
*/
class percent_form extends moodleform {
Expand Down
7 changes: 3 additions & 4 deletions components/calcs/percent/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author David Pesce <[email protected]>
* @date 2019
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author David Pesce <[email protected]>
*/
defined('MOODLE_INTERNAL') || die;
require_once($CFG->dirroot . '/blocks/configurable_reports/plugin.class.php');
Expand All @@ -29,7 +29,6 @@
*
* @package block_configurable_reports
* @author David Pesce <[email protected]>
* @date 2019
*/
class plugin_percent extends plugin_base {

Expand Down
8 changes: 4 additions & 4 deletions components/calcs/sum/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
Expand All @@ -31,7 +32,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class sum_form extends moodleform {

Expand Down
8 changes: 4 additions & 4 deletions components/calcs/sum/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* Class plugin_sum
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugin_sum extends plugin_base {

Expand Down
9 changes: 4 additions & 5 deletions components/cohorts/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @author : François Parlant <https://www.linkedin.com/in/francois-parlant/>
* @date : 2020
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @author François Parlant <https://www.linkedin.com/in/francois-parlant/>
*/

defined('MOODLE_INTERNAL') || die;
Expand All @@ -31,7 +31,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugin_cohorts extends plugin_base {

Expand Down
8 changes: 4 additions & 4 deletions components/columns/categoryfield/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
Expand All @@ -30,7 +31,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class categoryfield_form extends moodleform {

Expand Down
8 changes: 4 additions & 4 deletions components/columns/categoryfield/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
require_once($CFG->dirroot . '/blocks/configurable_reports/plugin.class.php');
Expand All @@ -29,7 +30,6 @@
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugin_categoryfield extends plugin_base {

Expand Down
8 changes: 4 additions & 4 deletions components/columns/component.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* Class component_columns
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class component_columns extends component_base {

Expand Down
7 changes: 4 additions & 3 deletions components/columns/coursefield/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
Expand Down
7 changes: 4 additions & 3 deletions components/columns/coursefield/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
/**
* Configurable Reports a Moodle block for creating customizable reports
*
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright 2020 Juan Leyva <[email protected]>
* @package block_configurable_reports
* @author Juan leyva <http://www.twitter.com/jleyvadelgado>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
require_once($CFG->dirroot . '/blocks/configurable_reports/plugin.class.php');
Expand Down
Loading

0 comments on commit 26aac8e

Please sign in to comment.