X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fuser%2FUserIdentity.php;h=64c61fe29408c0ffe2db2c121df427a9729393af;hb=8a6dc7e6af7eaa5c623c5b1534b49f0e517388e1;hp=d02a67888c41f9dca68cb28d9536c42dee40396f;hpb=6e65e0ab0d0dc5e7e0ea000f024a3481da35505b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/UserIdentity.php b/includes/user/UserIdentity.php index d02a67888c..64c61fe294 100644 --- a/includes/user/UserIdentity.php +++ b/includes/user/UserIdentity.php @@ -54,4 +54,20 @@ interface UserIdentity { // TODO: we may want to (optionally?) provide a global ID, see CentralIdLookup. + /** + * @since 1.32 + * + * @param UserIdentity $user + * @return bool + */ + public function equals( UserIdentity $user ); + + /** + * @since 1.34 + * + * @return bool True if user is registered on this wiki, i.e., has a user ID. False if user is + * anonymous or has no local account (which can happen when importing). This must be + * equivalent to getId() != 0 and is provided for code readability. + */ + public function isRegistered(); }