}, $this->getBlacklistMatches());
}
+ /**
+ * Returns true if this user is not activated.
+ *
+ * @return boolean
+ * @since 5.3
+ */
+ public function pendingActivation() {
+ return $this->activationCode != 0;
+ }
+
+ /**
+ * Returns true if this user requires activation by the user.
+ *
+ * @return boolean
+ * @since 5.3
+ */
+ public function requiresEmailActivation() {
+ return REGISTER_ACTIVATION_METHOD & self::REGISTER_ACTIVATION_USER && $this->pendingActivation() && !$this->isEmailConfirmed();
+ }
+
+ /**
+ * Returns true if this user requires the activation by an admin.
+ *
+ * @return boolean
+ * @since 5.3
+ */
+ public function requiresAdminActivation() {
+ return REGISTER_ACTIVATION_METHOD & self::REGISTER_ACTIVATION_ADMIN && $this->pendingActivation();
+ }
+
+ /**
+ * Returns true if this user can confirm the email themself.
+ *
+ * @return boolean
+ * @since 5.3
+ */
+ public function canEmailConfirm() {
+ return REGISTER_ACTIVATION_METHOD & self::REGISTER_ACTIVATION_USER && !$this->isEmailConfirmed();
+ }
+
+ /**
+ * Returns true, if the user must confirm his email by themself.
+ *
+ * @return boolean
+ * @since 5.3
+ */
+ public function mustSelfEmailConfirm() {
+ return REGISTER_ACTIVATION_METHOD & self::REGISTER_ACTIVATION_USER;
+ }
++
+ /**
+ * @inheritDoc
+ */
+ public function getPopoverLinkClass() {
+ return 'userLink';
+ }
}