diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2010-10-19 13:06:43 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2010-10-19 13:33:17 +0200 |
commit | 3fec93d3ff1f6a31f078e5558a15a75539bf5185 (patch) | |
tree | 1a6229643289d9d0ca55871bab9497035a6e49f1 /User/AdvancedAccountInterface.php | |
download | symfony-security-3fec93d3ff1f6a31f078e5558a15a75539bf5185.zip symfony-security-3fec93d3ff1f6a31f078e5558a15a75539bf5185.tar.gz symfony-security-3fec93d3ff1f6a31f078e5558a15a75539bf5185.tar.bz2 |
added the Security Component and its integration into the MVC framework
Happy birthday symfony!
Diffstat (limited to 'User/AdvancedAccountInterface.php')
-rw-r--r-- | User/AdvancedAccountInterface.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/User/AdvancedAccountInterface.php b/User/AdvancedAccountInterface.php new file mode 100644 index 0000000..7cdd547 --- /dev/null +++ b/User/AdvancedAccountInterface.php @@ -0,0 +1,48 @@ +<?php + +namespace Symfony\Component\Security\User; + +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier <fabien.potencier@symfony-project.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +/** + * AdvancedAccountInterface adds status flags to a regular account. + * + * @author Fabien Potencier <fabien.potencier@symfony-project.com> + */ +interface AdvancedAccountInterface extends AccountInterface +{ + /** + * Checks whether the user's account has expired. + * + * @return Boolean true if the user's account is non expired, false otherwise + */ + function isAccountNonExpired(); + + /** + * Checks whether the user is locked. + * + * @return Boolean true if the user is not locked, false otherwise + */ + function isAccountNonLocked(); + + /** + * Checks whether the user's credentials (password) has expired. + * + * @return Boolean true if the user's credentials are non expired, false otherwise + */ + function isCredentialsNonExpired(); + + /** + * Checks whether the user is enabled. + * + * @return Boolean true if the user is enabled, false otherwise + */ + function isEnabled(); +} |