dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JsonContent: Call member functions with '$this->', not 'self::'
[lhc/web/wiklou.git]
/
includes
/
AuthPlugin.php
diff --git
a/includes/AuthPlugin.php
b/includes/AuthPlugin.php
index
45ad4d1
..
6449d37
100644
(file)
--- a/
includes/AuthPlugin.php
+++ b/
includes/AuthPlugin.php
@@
-120,6
+120,8
@@
class AuthPlugin {
* The User object is passed by reference so it can be modified; don't
* forget the & on your function declaration.
*
* The User object is passed by reference so it can be modified; don't
* forget the & on your function declaration.
*
+ * @deprecated since 1.26, use the UserLoggedIn hook instead. And assigning
+ * a different User object to $user is no longer supported.
* @param User $user
* @return bool
*/
* @param User $user
* @return bool
*/
@@
-155,11
+157,11
@@
class AuthPlugin {
* @return bool
*/
public function allowPropChange( $prop = '' ) {
* @return bool
*/
public function allowPropChange( $prop = '' ) {
- if ( $prop == 'realname' && is_callable(
array( $this, 'allowRealNameChange' )
) ) {
+ if ( $prop == 'realname' && is_callable(
[ $this, 'allowRealNameChange' ]
) ) {
return $this->allowRealNameChange();
return $this->allowRealNameChange();
- } elseif ( $prop == 'emailaddress' && is_callable(
array( $this, 'allowEmailChange' )
) ) {
+ } elseif ( $prop == 'emailaddress' && is_callable(
[ $this, 'allowEmailChange' ]
) ) {
return $this->allowEmailChange();
return $this->allowEmailChange();
- } elseif ( $prop == 'nickname' && is_callable(
array( $this, 'allowNickChange' )
) ) {
+ } elseif ( $prop == 'nickname' && is_callable(
[ $this, 'allowNickChange' ]
) ) {
return $this->allowNickChange();
} else {
return true;
return $this->allowNickChange();
} else {
return true;
@@
-204,6
+206,7
@@
class AuthPlugin {
* Update user information in the external authentication database.
* Return true if successful.
*
* Update user information in the external authentication database.
* Return true if successful.
*
+ * @deprecated since 1.26, use the UserSaveSettings hook instead.
* @param User $user
* @return bool
*/
* @param User $user
* @return bool
*/
@@
-215,12
+218,13
@@
class AuthPlugin {
* Update user groups in the external authentication database.
* Return true if successful.
*
* Update user groups in the external authentication database.
* Return true if successful.
*
+ * @deprecated since 1.26, use the UserGroupsChanged hook instead.
* @param User $user
* @param array $addgroups Groups to add.
* @param array $delgroups Groups to remove.
* @return bool
*/
* @param User $user
* @param array $addgroups Groups to add.
* @param array $delgroups Groups to remove.
* @return bool
*/
- public function updateExternalDBGroups( $user, $addgroups, $delgroups =
array()
) {
+ public function updateExternalDBGroups( $user, $addgroups, $delgroups =
[]
) {
return true;
}
return true;
}
@@
-278,6
+282,8
@@
class AuthPlugin {
* The User object is passed by reference so it can be modified; don't
* forget the & on your function declaration.
*
* The User object is passed by reference so it can be modified; don't
* forget the & on your function declaration.
*
+ * @deprecated since 1.26, use the UserLoggedIn hook instead. And assigning
+ * a different User object to $user is no longer supported.
* @param User $user
* @param bool $autocreate True if user is being autocreated on login
*/
* @param User $user
* @param bool $autocreate True if user is being autocreated on login
*/
@@
-312,7
+318,7
@@
class AuthPlugin {
* @return array
*/
public function domainList() {
* @return array
*/
public function domainList() {
- return
array()
;
+ return
[]
;
}
}
}
}
@@
-326,11
+332,21
@@
class AuthPluginUser {
return -1;
}
return -1;
}
+ /**
+ * Indicate whether the user is locked
+ * @deprecated since 1.26, use the UserIsLocked hook instead.
+ * @return bool
+ */
public function isLocked() {
# Override this!
return false;
}
public function isLocked() {
# Override this!
return false;
}
+ /**
+ * Indicate whether the user is hidden
+ * @deprecated since 1.26, use the UserIsHidden hook instead.
+ * @return bool
+ */
public function isHidden() {
# Override this!
return false;
public function isHidden() {
# Override this!
return false;