From f093bfde2073ebf6662a41923b9fa242d5f5b9fc Mon Sep 17 00:00:00 2001 From: Hubert Borderiou Date: Thu, 27 Sep 2012 17:41:41 +0200 Subject: [PATCH] Fix constant declaration in groupmanager.lib.php -ref #5544 --- main/inc/lib/groupmanager.lib.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/main/inc/lib/groupmanager.lib.php b/main/inc/lib/groupmanager.lib.php index 6cb6c45a8d..99e7d46499 100644 --- a/main/inc/lib/groupmanager.lib.php +++ b/main/inc/lib/groupmanager.lib.php @@ -12,6 +12,10 @@ require_once 'fileManage.lib.php'; require_once 'fileUpload.lib.php'; require_once 'document.lib.php'; +//define ("TOOL_NOT_AVAILABLE", "0"); +//define ("TOOL_PUBLIC", "1"); +//define ("TOOL_PRIVATE", "2"); + /** * infinite */ @@ -24,15 +28,6 @@ define("MEMBER_PER_GROUP_NO_LIMIT", "0"); * No limit on the number of groups per user */ define("GROUP_PER_MEMBER_NO_LIMIT", "0"); -/** - * The tools of a group can have 3 states - * - not available - * - public - * - private - */ -define("TOOL_NOT_AVAILABLE", "0"); -define("TOOL_PUBLIC", "1"); -define("TOOL_PRIVATE", "2"); /** * Constants for the available group tools */ @@ -62,9 +57,20 @@ define("DEFAULT_GROUP_CATEGORY", 2); */ class GroupManager { //CLASS CONSTANTS + /** + * The tools of a group can have 3 states + * - not available + * - public + * - private + */ const TOOL_NOT_AVAILABLE = 0; + const TOOL_PUBLIC = 1; + const TOOL_PRIVATE = 2; + const VIRTUAL_COURSE_CATEGORY = 1; const DEFAULT_GROUP_CATEGORY = 2; const MEMBER_PER_GROUP_NO_LIMIT = 0; + + //GROUP FUNCTIONS private function __construct() { }