Skip to content

Commit 7b97743

Browse files
Remove all now apparently unwanted MOODLE_INTERNAL checks
1 parent eed7b5d commit 7b97743

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1
-108
lines changed

classes/action.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*/
2323
namespace tool_lifecycle;
2424

25-
defined('MOODLE_INTERNAL') || die();
26-
2725
/**
2826
* Delivers all available action names throughout the plugin.
2927
* @package tool_lifecycle

classes/event/process_proceeded.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
use moodle_url;
2727
use tool_lifecycle\local\entity\process;
2828

29-
defined('MOODLE_INTERNAL') || die();
30-
3129
/**
3230
* The process_proceeded event class.
3331
*

classes/event/process_rollback.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
use moodle_url;
2828
use tool_lifecycle\local\entity\process;
2929

30-
defined('MOODLE_INTERNAL') || die();
31-
3230
/**
3331
* The process_rollback event class.
3432
*

classes/event/process_triggered.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
use moodle_url;
2828
use tool_lifecycle\local\entity\process;
2929

30-
defined('MOODLE_INTERNAL') || die();
31-
3230
/**
3331
* The process_triggered event class.
3432
*

classes/local/backup/backup_lifecycle_workflow.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
use tool_lifecycle\local\manager\settings_manager;
3232
use tool_lifecycle\settings_type;
3333

34-
defined('MOODLE_INTERNAL') || die();
35-
3634
/**
3735
* Class to backup a workflow.
3836
* @package tool_lifecycle

classes/local/backup/restore_lifecycle_workflow.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
use tool_lifecycle\local\manager\settings_manager;
3232
use tool_lifecycle\settings_type;
3333

34-
defined('MOODLE_INTERNAL') || die();
35-
3634
/**
3735
* Class to restore a workflow.
3836
* @package tool_lifecycle

classes/local/data/manual_trigger_tool.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
use renderable;
2727

28-
defined('MOODLE_INTERNAL') || die();
29-
3028
/**
3129
* Class representing a manual trigger tool
3230
*

classes/local/entity/process.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\entity;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Life Cycle Process class
3028
*

classes/local/entity/step_subplugin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\entity;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Subplugin class
3028
*

classes/local/entity/subplugin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\entity;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Subplugin class
3028
*

classes/local/entity/trigger_subplugin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\entity;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Trigger subplugin class
3028
*

classes/local/entity/workflow.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\entity;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Life Cycle Workflow class
3028
*

classes/local/manager/delayed_courses_manager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525
namespace tool_lifecycle\local\manager;
2626

27-
defined('MOODLE_INTERNAL') || die();
2827
/**
2928
* Manager for Delayed Courses.
3029
*

classes/local/manager/interaction_manager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
use tool_lifecycle\processor;
2828
use tool_lifecycle\local\response\step_interactive_response;
2929

30-
defined('MOODLE_INTERNAL') || die();
31-
3230
/**
3331
* Manager to handle interactions by users
3432
*

classes/local/manager/lib_manager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
use tool_lifecycle\trigger\base_automatic;
2929
use tool_lifecycle\trigger\base_manual;
3030

31-
defined('MOODLE_INTERNAL') || die();
32-
3331
/**
3432
* Manager to retrive the lib of each subplugin.
3533
*

classes/local/manager/process_data_manager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
use tool_lifecycle\local\entity\process;
3131
use tool_lifecycle\local\entity\trigger_subplugin;
3232

33-
defined('MOODLE_INTERNAL') || die();
34-
3533
/**
3634
* Manager for data of Life Cycle Processes.
3735
*

classes/local/manager/process_manager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
use tool_lifecycle\event\process_proceeded;
3030
use tool_lifecycle\event\process_rollback;
3131

32-
defined('MOODLE_INTERNAL') || die();
33-
3432
/**
3533
* Manager for Life Cycle Processes
3634
*

classes/local/manager/step_manager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
use tool_lifecycle\local\entity\step_subplugin;
2828
use tool_lifecycle\settings_type;
2929

30-
defined('MOODLE_INTERNAL') || die();
31-
3230
/**
3331
* Manager for Subplugins
3432
*

classes/local/manager/subplugin_manager.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\manager;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
// This file is part of Moodle - http://moodle.org/
28-
//
29-
// Moodle is free software: you can redistribute it and/or modify
30-
// it under the terms of the GNU General Public License as published by
31-
// the Free Software Foundation, either version 3 of the License, or
32-
// (at your option) any later version.
33-
//
34-
// Moodle is distributed in the hope that it will be useful,
35-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
36-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37-
// GNU General Public License for more details.
38-
//
39-
// You should have received a copy of the GNU General Public License
40-
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
41-
4226
/**
4327
* Manager for Subplugins
4428
*

classes/local/manager/trigger_manager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
use tool_lifecycle\local\entity\workflow;
2929
use tool_lifecycle\settings_type;
3030

31-
defined('MOODLE_INTERNAL') || die();
32-
3331
/**
3432
* Manager for Trigger subplugins
3533
*

classes/local/manager/workflow_manager.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
use tool_lifecycle\local\data\manual_trigger_tool;
3131
use tool_lifecycle\settings_type;
3232

33-
defined('MOODLE_INTERNAL') || die();
34-
3533
/**
3634
* Manager for Life Cycle Workflows
3735
*

classes/local/response/step_interactive_response.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\response;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Possible Responses of a Subplugin for interaction handling
3028
*

classes/local/response/step_response.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\response;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Possible Responses of a Subplugin
3028
*

classes/local/response/trigger_response.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\local\response;
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Possible Responses of a Trigger Subplugin
3028
*

classes/plugininfo/lifecyclestep.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
use tool_lifecycle\local\manager\step_manager;
2828
use tool_lifecycle\local\manager\workflow_manager;
2929

30-
defined('MOODLE_INTERNAL') || die();
31-
3230
/**
3331
* Pluginfo for life cycle step
3432
*

classes/plugininfo/lifecycletrigger.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
use tool_lifecycle\local\manager\workflow_manager;
3131
use tool_usertours\step;
3232

33-
defined('MOODLE_INTERNAL') || die();
34-
3533
/**
3634
* Pluginfo for life cycle trigger
3735
*

classes/privacy/provider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
use tool_lifecycle\local\manager\step_manager;
3636
use tool_lifecycle\local\manager\workflow_manager;
3737

38-
defined('MOODLE_INTERNAL') || die();
39-
4038
/**
4139
* Implementation of the privacy subsystem plugin provider for the Life Cycle tool.
4240
*

classes/processor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
use tool_lifecycle\local\response\step_response;
3636
use tool_lifecycle\local\response\trigger_response;
3737

38-
39-
defined('MOODLE_INTERNAL') || die;
40-
4138
/**
4239
* Offers functionality to trigger, process and finish lifecycle processes.
4340
*

classes/settings_type.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*/
2323
namespace tool_lifecycle;
2424

25-
defined('MOODLE_INTERNAL') || die();
26-
2725
/**
2826
* Defines available settings_types.
2927
* @package tool_lifecycle

classes/task/lifecycle_cleanup_task.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\task;
2525

26-
defined('MOODLE_INTERNAL') || die;
27-
2826
/**
2927
* Scheduled task for cleanup past delays
3028
*

classes/task/lifecycle_error_notify_task.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
namespace tool_lifecycle\task;
2525

26-
defined('MOODLE_INTERNAL') || die;
27-
2826
/**
2927
* Scheduled task for notify admin upon process errors
3028
*

classes/task/lifecycle_task.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
use tool_lifecycle\local\manager\step_manager;
2828
use tool_lifecycle\processor;
2929

30-
defined('MOODLE_INTERNAL') || die;
31-
3230
/**
3331
* Scheduled task for working on lifecycle processes
3432
*

classes/view_controller.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
use tool_lifecycle\local\manager\trigger_manager;
3333
use tool_lifecycle\local\table\interaction_log_table;
3434
use tool_lifecycle\local\table\interaction_remaining_table;
35-
use tool_lifecycle\local\table\interaction_attention_table;
36-
37-
defined('MOODLE_INTERNAL') || die();
35+
use tool_lifecycle\local\table\interaction_attention_table;;
3836

3937
/**
4038
* Controller for view.php

db/upgrade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424

25-
defined('MOODLE_INTERNAL') || die();
26-
2725
/**
2826
* Update script for tool_lifecycle.
2927
* @param int $oldversion Version id of the previously installed version.

lib.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2222
*/
2323

24-
defined('MOODLE_INTERNAL') || die();
25-
2624
/**
2725
* Adds a tool_lifecycle link to the course admin menu.
2826
*

renderer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
* @copyright 2017 Tobias Reischmann WWU
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
24-
defined('MOODLE_INTERNAL') || die();
2524

2625
/**
2726
* Renderer for life cycle

step/createbackup/db/upgrade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
use tool_lifecycle\local\manager\settings_manager;
2626
use tool_lifecycle\local\manager\step_manager;
2727

28-
defined('MOODLE_INTERNAL') || die();
29-
3028
/**
3129
* Update script for lifecycles subplugin createbackup.
3230
* @param int $oldversion Version id of the previously installed version.

step/deletecourse/db/upgrade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
use tool_lifecycle\local\manager\settings_manager;
2626
use tool_lifecycle\local\manager\step_manager;
2727

28-
defined('MOODLE_INTERNAL') || die();
29-
3028
/**
3129
* Update script for lifecycles subplugin deletecourse
3230
*

step/interactionlib.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
use tool_lifecycle\local\entity\step_subplugin;
3232
use tool_lifecycle\local\response\step_interactive_response;
3333

34-
defined('MOODLE_INTERNAL') || die();
35-
3634
/**
3735
* Interface for the interactions of the subplugintype step.
3836
*

tests/active_workflow_is_manual_test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* @copyright 2018 WWU
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
25-
defined('MOODLE_INTERNAL') || die();
2625

2726
require_once(__DIR__ . '/generator/lib.php');
2827
require_once(__DIR__ . '/../lib.php');

tests/backup_manager_test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* @copyright 2017 Tobias Reischmann WWU
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
25-
defined('MOODLE_INTERNAL') || die();
2625

2726
use tool_lifecycle\local\manager\backup_manager;
2827

tests/generator/lib.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* @copyright 2017 Tobias Reischmann WWU
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
25-
defined('MOODLE_INTERNAL') || die();
2625

2726
use tool_lifecycle\local\entity\process;
2827
use tool_lifecycle\local\entity\trigger_subplugin;

tests/manual_trigger_tools_test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* @copyright 2018 Tobias Reischmann, Jan Dageforde WWU
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
25-
defined('MOODLE_INTERNAL') || die();
2625

2726
use tool_lifecycle\action;
2827
use tool_lifecycle\local\entity\workflow;

0 commit comments

Comments
 (0)