Метод |
Описание |
|
__construct ( string $email = null ) |
|
|
__toString ( ) : string |
|
|
addAttribute ( string $name, string $value ) : Newscoop\Entity\User |
Add attribute |
|
addClient ( Client $client ) : Newscoop\Entity\User |
Add oauth client |
|
addUserType ( Group $type ) : Newscoop\Entity\User |
Add user type |
|
checkPassword ( string $password ) : boolean |
Check password |
|
eraseCredentials ( ) |
Removes sensitive data from the user. |
|
exists ( ) : boolean |
Check if the user exists
Test if there is set an id |
|
generateRandomString ( integer $length = 12, string $allowed_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' ) : string |
Get random string |
|
getAttribute ( string $name ) : mixed |
Get attribute |
|
getAttributes ( ) : array |
Get all user attributes |
|
getAuthor ( ) : integer |
Get author |
|
getAuthorId ( ) : integer |
Get author id |
|
getCity ( ) : string |
Get city |
|
getClients ( ) : ArrayCollection |
Get oauth clients |
|
getCommenters ( ) |
|
|
getComments ( ) : array |
Get a User's comments which are associated with his User account. |
|
getCountryCode ( ) : string |
Get country code |
|
getCreated ( ) : DateTime |
Get created datetime |
|
getDataTableView ( Zend_View_Abstract $view ) : object |
TODO: move this to user service - it's not a part of entity |
|
getEditView ( Zend_View_Abstract $view ) : object |
TODO: move this to user service - it's not a part of entity |
|
getEmail ( ) : string |
Get email |
|
getFirstName ( ) : string |
Get first name |
|
getGroupNames ( ) : array |
Get group names |
|
getGroups ( ) : array |
Get groups |
|
getId ( ) : integer |
Get id |
|
getImage ( ) : string |
Get image |
|
getIndexed ( ) : DateTime |
Get indexed |
|
getLastLogin ( ) : void |
Get lastLogin |
|
getLastName ( ) : string |
Get last name |
|
getName ( ) : string |
Get name |
|
getObject ( ) |
|
|
getPassword ( ) : [type] |
Get password for authentication |
|
getPhone ( ) : string |
Get phone |
|
getPoints ( ) : integer |
Get points |
|
getPostal ( ) : string |
Get postal code |
|
getProperty ( $p_key ) : mixed |
Get an enity property |
|
getPublication ( ) : integer |
Get publication id which user registered with |
|
getRawAttributes ( ) : array |
Get raw user attributes |
|
getRealName ( ) : string |
Get real name |
|
getResetToken ( ) : string |
Get password reset token |
|
getRoleId ( ) : integer |
Get role id |
|
getRoles ( ) : array |
Get user roles for authentication |
|
getSalt ( ) : string |
Get password salt for authentication |
|
getState ( ) : string |
Get state |
|
getStatus ( ) : integer |
Get status |
|
getStreet ( ) : string |
Get street address |
|
getSubscriber ( ) : integer |
Get subscriber |
|
getTopics ( ) : ArrayCollection | null |
Gets user's topics |
|
getUpdated ( ) : DateTime |
Get updated datetime |
|
getUserId ( ) : integer |
Get user id
proxy to getId |
|
getUserTypes ( ) : array |
Get user types |
|
getUsername ( ) : string |
Get username |
|
getView ( ) : UserView |
Get view |
|
hasClient ( Client $client ) : boolean |
Has client |
|
hasGroup ( string $name ) : boolean |
Test if user has group |
|
hasPermission ( string $permission, string $resource = null, string $action = null ) : boolean |
Check permissions |
|
isAccountNonExpired ( ) : boolean |
Checks if the user account is not expired. |
|
isAccountNonLocked ( ) : boolean |
Checks if the user account is not locked. Currently there is no
seperation between pending and banned. |
|
isActive ( ) : boolean |
Test if user is active |
|
isAdmin ( ) : boolean |
Test if user is admin |
|
isBanned ( ) : boolean |
Test if user is banned |
|
isCredentialsNonExpired ( ) : boolean |
Checks if credentials are expired. We don't have this mechanism in
Newscoop. |
|
isEnabled ( ) : boolean |
Checks if the user account is enabled. |
|
isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user ) |
|
|
isPending ( ) : boolean |
Test if user is pending |
|
isPublic ( ) : boolean |
Test if user is public |
|
preUpdate ( ) |
|
|
removeAttribute ( string $name ) : Newscoop\Entity\UserAttribute |
Remove attribute |
|
rename ( string $username ) : void |
TODO: move this to user service - it's not a part of entity |
|
render ( ) : UserView |
TODO: move this to user service - it's not a part of entity |
|
serialize ( ) |
|
|
setActive ( ) : Newscoop\Entity\User |
Set user as active |
|
setAdmin ( boolean $admin ) : Newscoop\Entity\User |
Set admin switch |
|
setAttributes ( mixed $attributes ) |
Set User attributes |
|
setAuthor ( Author $author = null ) : Newscoop\Entity\User |
Set author |
|
setCity ( string $city ) : string |
Set city |
|
setCountryCode ( string $countryCode ) : string |
Set country code |
|
setEmail ( string $email ) : Newscoop\Entity\User |
Set email |
|
setFirstName ( string $first_name ) : Newscoop\Entity\User |
Set first name |
|
setImage ( string $image ) : Newscoop\Entity\User |
Set image |
|
setIndexed ( DateTime $indexed = null ) : self |
Set indexed |
|
setLastLogin ( DateTime $lastLogin = null ) : void |
Set lastLogin |
|
setLastName ( string $last_name ) : Newscoop\Entity\User |
Set last name |
|
setPassword ( string $password ) : Newscoop\Entity\User |
Set password |
|
setPhone ( string $phone ) : string |
Set phone |
|
setPoints ( integer $points ) : Newscoop\Entity\User |
Set points |
|
setPostal ( string $postal ) : string |
Set postal code |
|
setPublic ( boolean $public = true ) : Newscoop\Entity\User |
Set user is public |
|
setPublication ( integer $publication ) : integer |
Set publication which user registered with |
|
setResetToken ( integer $resetToken ) : string |
Set password reset token |
|
setRole ( Role $role ) : Newscoop\Entity\User |
Set role |
|
setState ( string $state ) : string |
Set state |
|
setStatus ( integer $status ) : Newscoop\Entity\User |
Set status |
|
setStreet ( string $street ) : string |
Set street address |
|
setSubscriber ( integer $subscriber ) : Newscoop\Entity\User |
Set subscriber |
|
setUsername ( string $username ) : Newscoop\Entity\User |
Set username |
|
unserialize ( $data ) |
|
|
updateProfile ( string $username, string $password, string $firstName, string $lastName, string $image, array $attributes ) |
TODO: move this to user service - it's not a part of entity |
|