Mapbender 3.0.6.1 API documenation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • FOM
    • CoreBundle
      • Component
      • DependencyInjection
      • Doctrine
        • Types
      • Form
        • DataTransformer
        • Type
    • ManagerBundle
      • Component
      • Configuration
      • Controller
      • DependencyInjection
        • Compiler
      • Form
        • Type
      • Routing
    • UserBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
        • Factory
      • Entity
      • EventListener
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Firewall
  • Mapbender
    • Component
    • CoreBundle
      • Asset
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
          • Application
      • DependencyInjection
        • Compiler
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
      • Tests
        • Controller
      • Utils
      • Validator
        • Constraints
    • DataSourceBundle
      • Component
        • Drivers
          • Interfaces
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Extension
      • Tests
    • DigitizerBundle
      • Component
      • Element
        • Type
      • Entity
      • Utils
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Component
        • Exception
      • Controller
      • Form
        • DataTransformer
        • Type
      • Template
    • MobileBundle
      • DependencyInjection
      • Template
    • PrintBundle
      • Component
      • Element
        • Type
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
      • Tests
        • Component
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • Event
      • Form
        • DataTransformer
        • EventListener
        • Type
  • None
  • OwsProxy3
    • CoreBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Entity
      • Event
      • EventListener
      • Worker
  • PHP

Classes

  • AclEntry
  • BasicProfile
  • Group
  • Session
  • User
  • UserLogEntry

Class User

User entity.

This needs enhancement, email should probably required. And we need a way to implements user profiles which can vary from installation to installation.

FOM\UserBundle\Entity\User implements Symfony\Component\Security\Core\User\AdvancedUserInterface
Namespace: FOM\UserBundle\Entity
Author: Christian Wygoda
Author: apour
Author: Paul Schmidt
ORM\Entity
ORM\Table(name="fom_user"): TODO: Validation TODO: Basic user data TODO: User profiles
UniqueEntity("email")
UniqueEntity("username")
Located at FOM/UserBundle/Entity/User.php

Methods summary

public
# __construct( )

Constructor

Constructor

public
# setId( integer $id )

Set id

Set id

Parameters

$id
public integer
# getId( )

Get id

Get id

Returns

integer
integer
public mixed
# setUsername( string $username )

Set username

Set username

Parameters

$username

Returns

mixed
$this
public string
# getUsername( )

Get username

Get username

Returns

string
string
public mixed
# setEmail( string $email )

Set email

Set email

Parameters

$email

Returns

mixed
$this
public string
# getEmail( )

Get email

Get email

Returns

string
string
public mixed
# setPassword( string $password )

Set password

Set password

Parameters

$password

Returns

mixed
$this
public string
# getPassword( )

Get password

Get password

Returns

string
string
public
# setSalt( string $salt )

Set salt

Set salt

Parameters

$salt
public null|string
# getSalt( )

Get salt

Get salt

Returns

null|string
null|string
public
# setRegistrationTime( string $registrationTime )

Set registrationTime

Set registrationTime

Parameters

$registrationTime
public string
# getRegistrationTime( )

Get registrationTime

Get registrationTime

Returns

string
string
public
# setRegistrationToken( string $registrationToken )

Set registrationToken

Set registrationToken

Parameters

$registrationToken
public string
# getRegistrationToken( )

Get registrationToken

Get registrationToken

Returns

string
string
public
# setResetTime( string $resetTime )

Set resetTime

Set resetTime

Parameters

$resetTime
public string
# getResetTime( )

Get resetTime

Get resetTime

Returns

string
string
public
# setResetToken( string $resetToken )

Set resetToken

Set resetToken

Parameters

$resetToken
public string
# getResetToken( )

Get resetToken

Get resetToken

Returns

string
string
public mixed
# addGroups( FOM\UserBundle\Entity\Group $group )

Add groups

Add groups

Parameters

$group

Returns

mixed
$this
public Doctrine\Common\Collections\Collection
# getGroups( )

Get groups

Get groups

Returns

Doctrine\Common\Collections\Collection
Collection
public array
# getRoles( )

Get role objects

Get role objects

Returns

array
array
public
# eraseCredentials( )

Erase sensitive data like plain password. Don't fiddle with persisted data in here!

Erase sensitive data like plain password. Don't fiddle with persisted data in here!

public boolean
# equals( Symfony\Component\Security\Core\User\UserInterface $user )

Compare users

Compare users

This user class is only compatible with itself and compares the username property. If you'r needs differ, use a subclass.

Parameters

$user
The user to compare

Returns

boolean
bool
public boolean
# isAccountNonExpired( )

Returns

boolean
bool
public boolean
# isCredentialsNonExpired( )

Returns

boolean
bool
public boolean
# isEnabled( )

Returns

boolean
bool
public boolean
# isAdmin( string $type = null )

Checks whether the user is an admin for the given type (or is superadmin if type is omitted)

Checks whether the user is an admin for the given type (or is superadmin if type is omitted)

Parameters

$type
Type of admin to check

Returns

boolean
bool
public mixed
# setProfile( mixed $profile )

Parameters

$profile

Returns

mixed
$this
public
# getProfile( )
public FOM\UserBundle\Entity\User
# addGroup( FOM\UserBundle\Entity\Group $groups )

Add groups

Add groups

Parameters

$groups

Returns

FOM\UserBundle\Entity\User
User
public
# removeGroup( FOM\UserBundle\Entity\Group $groups )

Remove groups

Remove groups

Parameters

$groups
public boolean
# isAnonymous( )

Returns

boolean
bool
public boolean
# hasProfile( )

Returns

boolean
bool
public boolean
# isAccountNonLocked( )

Checks whether the user is locked.

Checks whether the user is locked.

Internally, if this method returns false, the authentication system will throw a LockedException and prevent login.

Returns

boolean
true if the user is not locked, false otherwise

See

LockedException

Magic methods summary

Properties summary

protected mixed $id

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

#
protected mixed $username

Assert\Length(min=3)

Assert\NotBlank()

ORM\Column(type="string",

nullable=false, length=255, unique=true)
#
protected mixed $email

Assert\Email()

Assert\NotBlank()

ORM\Column(type="string",

nullable=false, length=255, unique=true)
#
protected mixed $password

Assert\Length(min=8)

Assert\NotBlank()

ORM\Column

#
protected mixed $salt

ORM\Column

#
protected mixed $registrationTime

ORM\Column(type="datetime",

nullable=true)
#
protected mixed $registrationToken

ORM\Column(type="string",

nullable=true, length=50)
#
protected mixed $resetTime

ORM\Column(type="datetime",

nullable=true)
#
protected mixed $resetToken

ORM\Column(type="string",

nullable=true, length=50)
#
protected mixed $groups

ORM\JoinTable(name="fom_users_groups")

ORM\ManyToMany(targetEntity="Group",

inversedBy="users")
#
protected mixed $profile

The profile is not stored here, but a placeholder is needed

The profile is not stored here, but a placeholder is needed

#
Mapbender 3.0.6.1 API documenation API documentation generated by ApiGen 2.8.0