Метод |
Описание |
|
__construct ( Doctrine\Common\Persistence\ObjectManager $em, Zend_Auth $auth, SecurityContext $security ) |
|
|
checkUsername ( string $username ) : boolean |
Test if username is available |
|
countAll ( ) : integer |
Count all users |
|
countBy ( array $criteria ) : integer |
Count users by given criteria |
|
createPending ( string $email, string | null $firstName = null, string | null $lastName = null, string | null $subscriber = null, $publication = null ) : User |
Create pending user |
|
createUser ( string $email, string $password, $username, string $firstName = null, string $lastName = null, integer $publication, $public = true, $userTypes = [], $isAdmin = false ) |
Create new activated user |
|
delete ( User $user ) : void |
Delete user |
|
extractCriteriaFromRequest ( $request ) |
|
|
find ( integer $id ) : User |
Find user |
|
findAll ( ) : mixed |
Find all users |
|
findBy ( array $criteria, array $orderBy = null, integer | null $limit = null, integer | null $offset = null ) : mixed |
Find by given criteria |
|
findByAuthor ( integer $authorId ) : User | null |
Find user by author |
|
findOneBy ( array $criteria ) : User |
Find one by given criteria |
|
generateUsername ( string $firstName, string $lastName ) : string |
Generate username |
|
getClassName ( ) : string |
Get user entity class name |
|
getCollection ( array $criteria, array $orderBy, integer $limit = null, integer $offset = null ) : PaginatedCollection |
Get collection by given criteria |
|
getCurrentUser ( ) : User |
Get current user |
|
getGroupOptions ( ) : array |
Get user group options |
|
getPublicUserCount ( ) : integer |
Get count of public users |
|
getUserIp ( ) : string |
Get user IP |
|
loadUserByUsername ( $username ) |
|
|
loginUser ( User $user, string $providerKey ) : UsernamePasswordToken |
Log in user |
|
renameUser ( object $command ) : void |
Rename user |
|
save ( array $data, User $user = null ) : User |
Save user |
|
savePending ( array $data, User $user ) : void |
Save pending user |
|
setActive ( User $user ) : void |
Set user active |
|
setUserIp ( string $userIp = null ) : string |
Set user IP |
|
updateUserPoints ( Symfony\Component\EventDispatcher\GenericEvent $event ) : void |
Update user points |
|
userIpResolver ( Request $request ) : string |
Resolve user IP from provided data |
|