Skip to content

Commit

Permalink
fix: class should not be accessed directly
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed May 27, 2020
1 parent 0631ece commit 7800c3b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/conditionnable.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
* ---------------------------------------------------------------------
*/

if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}

trait PluginFormcreatorConditionnable
{
public function updateConditions($input) {
Expand Down
4 changes: 4 additions & 0 deletions inc/conditionnableinterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
* ---------------------------------------------------------------------
*/

if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}

interface PluginFormcreatorConditionnableInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions inc/duplicatableinterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
* ---------------------------------------------------------------------
*/

if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}

interface PluginFormcreatorDuplicatableInterface
{
/**
Expand Down
5 changes: 5 additions & 0 deletions inc/questionparameter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
* @link http://plugins.glpi-project.org/#/plugin/formcreator
* ---------------------------------------------------------------------
*/

if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}

abstract class PluginFormcreatorQuestionParameter
extends CommonDBChild
implements PluginFormcreatorQuestionParameterInterface, PluginFormcreatorExportableInterface
Expand Down
3 changes: 3 additions & 0 deletions inc/questionparameterinterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
* @link http://plugins.glpi-project.org/#/plugin/formcreator
* ---------------------------------------------------------------------
*/
if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}

interface PluginFormcreatorQuestionParameterInterface {
/**
Expand Down

0 comments on commit 7800c3b

Please sign in to comment.