Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 17:54:27 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 17:54:27 +0300
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /apps/user_ldap
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Access.php2
-rw-r--r--apps/user_ldap/lib/Configuration.php6
-rw-r--r--apps/user_ldap/lib/Jobs/Sync.php4
-rw-r--r--apps/user_ldap/lib/User/User.php4
-rw-r--r--apps/user_ldap/lib/Wizard.php18
5 files changed, 17 insertions, 17 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 6744b044cdf..71994585c73 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -64,7 +64,7 @@ use OCP\IUserManager;
* @package OCA\User_LDAP
*/
class Access extends LDAPUtility {
- const UUID_ATTRIBUTES = ['entryuuid', 'nsuniqueid', 'objectguid', 'guid', 'ipauniqueid'];
+ public const UUID_ATTRIBUTES = ['entryuuid', 'nsuniqueid', 'objectguid', 'guid', 'ipauniqueid'];
/** @var \OCA\User_LDAP\Connection */
public $connection;
diff --git a/apps/user_ldap/lib/Configuration.php b/apps/user_ldap/lib/Configuration.php
index 4076a6e8a3d..81e33e6244f 100644
--- a/apps/user_ldap/lib/Configuration.php
+++ b/apps/user_ldap/lib/Configuration.php
@@ -41,9 +41,9 @@ namespace OCA\User_LDAP;
* @property string ldapUserAvatarRule
*/
class Configuration {
- const AVATAR_PREFIX_DEFAULT = 'default';
- const AVATAR_PREFIX_NONE = 'none';
- const AVATAR_PREFIX_DATA_ATTRIBUTE = 'data:';
+ public const AVATAR_PREFIX_DEFAULT = 'default';
+ public const AVATAR_PREFIX_NONE = 'none';
+ public const AVATAR_PREFIX_DATA_ATTRIBUTE = 'data:';
protected $configPrefix = null;
protected $configRead = false;
diff --git a/apps/user_ldap/lib/Jobs/Sync.php b/apps/user_ldap/lib/Jobs/Sync.php
index 1ef2d16e7c2..053ca894902 100644
--- a/apps/user_ldap/lib/Jobs/Sync.php
+++ b/apps/user_ldap/lib/Jobs/Sync.php
@@ -43,8 +43,8 @@ use OCP\IUserManager;
use OCP\Notification\IManager;
class Sync extends TimedJob {
- const MAX_INTERVAL = 12 * 60 * 60; // 12h
- const MIN_INTERVAL = 30 * 60; // 30min
+ public const MAX_INTERVAL = 12 * 60 * 60; // 12h
+ public const MIN_INTERVAL = 30 * 60; // 30min
/** @var Helper */
protected $ldapHelper;
/** @var LDAP */
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index 724db063659..7d4e6c267de 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -107,8 +107,8 @@ class User {
/**
* DB config keys for user preferences
*/
- const USER_PREFKEY_FIRSTLOGIN = 'firstLoginAccomplished';
- const USER_PREFKEY_LASTREFRESH = 'lastFeatureRefresh';
+ public const USER_PREFKEY_FIRSTLOGIN = 'firstLoginAccomplished';
+ public const USER_PREFKEY_LASTREFRESH = 'lastFeatureRefresh';
/**
* @brief constructor, make sure the subclasses call this one!
diff --git a/apps/user_ldap/lib/Wizard.php b/apps/user_ldap/lib/Wizard.php
index b0b9374fdf6..73032bfd7f2 100644
--- a/apps/user_ldap/lib/Wizard.php
+++ b/apps/user_ldap/lib/Wizard.php
@@ -50,18 +50,18 @@ class Wizard extends LDAPUtility {
protected $result;
protected $resultCache = [];
- const LRESULT_PROCESSED_OK = 2;
- const LRESULT_PROCESSED_INVALID = 3;
- const LRESULT_PROCESSED_SKIP = 4;
+ public const LRESULT_PROCESSED_OK = 2;
+ public const LRESULT_PROCESSED_INVALID = 3;
+ public const LRESULT_PROCESSED_SKIP = 4;
- const LFILTER_LOGIN = 2;
- const LFILTER_USER_LIST = 3;
- const LFILTER_GROUP_LIST = 4;
+ public const LFILTER_LOGIN = 2;
+ public const LFILTER_USER_LIST = 3;
+ public const LFILTER_GROUP_LIST = 4;
- const LFILTER_MODE_ASSISTED = 2;
- const LFILTER_MODE_RAW = 1;
+ public const LFILTER_MODE_ASSISTED = 2;
+ public const LFILTER_MODE_RAW = 1;
- const LDAP_NW_TIMEOUT = 4;
+ public const LDAP_NW_TIMEOUT = 4;
/**
* Constructor