Overview

Namespaces

  • Jity
    • HomepageBundle
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
        • Compiler
        • Service
          • Controller
      • Doctrine
        • Extension
          • DBAL
            • Types
      • Entity
      • EventListener
      • Form
        • Extension
      • Tests
        • Controller
      • Twig
        • Extension
  • PHP

Classes

  • AbstractPage
  • AbstractPageTag
  • Article
  • Category
  • Comment
  • Contact
  • Group
  • NavigationContainer
  • NavigationResource
  • Page
  • Section
  • Service
  • Sidebar
  • SidebarSection
  • Tag
  • User
  • UserRepository
  • Overview
  • Namespace
  • Class
  • Tree

Class User

Users

User entity.

Jity\HomepageBundle\Entity\User implements Symfony\Component\Security\Core\User\AdvancedUserInterface, Symfony\Component\Security\Core\User\EquatableInterface, Serializable
Namespace: Jity\HomepageBundle\Entity
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: AdvancedUserInterface
Uses: EquatableInterface
ORM\Entity
ORM\Entity(repositoryClass="Jity\HomepageBundle\Entity\UserRepository")
ORM\Table(name="user")
Located at Jity/HomepageBundle/Entity/User.php
Methods summary
public
# __construct( )

__construct

__construct

Initalize a new User entity.

public integer
# getId( )

getId

getId

Get the id of the entity.

Returns

integer
public Jity\HomepageBundle\Entity\User
# setEmail( string $email )

setEmail

setEmail

Set a email to the entity.

Parameters

$email
string
$email Email address of the user

Returns

Jity\HomepageBundle\Entity\User
public string
# getEmail( )

getEmail

getEmail

Get the email of the entity.

Returns

string
public Jity\HomepageBundle\Entity\User
# setPassword( string $password )

setPassword

setPassword

Set a password to the entity.

Parameters

$password
string
$password Password of the user

Returns

Jity\HomepageBundle\Entity\User
public string
# getPassword( )

getPassword

getPassword

Get the password of the entity.

Returns

string
public Jity\HomepageBundle\Entity\User
# setFirstName( string $firstName )

setFirstName

setFirstName

Set a firstName to the entity.

Parameters

$firstName
string
$firstName Firstname of the user

Returns

Jity\HomepageBundle\Entity\User
public string
# getFirstName( )

getFirstName

getFirstName

Get the firstName of the entity.

Returns

string
public Jity\HomepageBundle\Entity\User
# setLastName( string $lastName )

setLastName

setLastName

Set the lastName to the entity.

Parameters

$lastName
string
$lastName Lastname of the user

Returns

Jity\HomepageBundle\Entity\User
public string
# getLastName( )

getLastName

getLastName

Get the lastName of the entity.

Returns

string
public Jity\HomepageBundle\Entity\User
# setStatus( smallint $status )

setStatus

setStatus

Set the status of the entity.

Parameters

$status
smallint
$status Status of the user

Returns

Jity\HomepageBundle\Entity\User
public smallint
# getStatus( )

getStatus

getStatus

Get the status of the entity.

Returns

smallint
public Jity\HomepageBundle\Entity\User
# setLastLogin( datetime $lastLogin )

setLastLogin

setLastLogin

Set the lastLogin date of the entity.

Parameters

$lastLogin
datetime
$lastLogin Last login date of the user

Returns

Jity\HomepageBundle\Entity\User
public datetime
# getLastLogin( )

getLastLogin

getLastLogin

Get the lastLogin date of the entity.

Returns

datetime
public Jity\HomepageBundle\Entity\User
# setRegisteredAt( datetime $registeredAt )

setRegisteredAt

setRegisteredAt

Set the registeredAt date of the entity.

Parameters

$registeredAt
datetime
$registeredAt Registered date of the user

Returns

Jity\HomepageBundle\Entity\User
public datetime
# getRegisteredAt( )

getRegisteredAt

getRegisteredAt

Get the registeredAt date of the entity.

Returns

datetime
public Jity\HomepageBundle\Entity\User
# addPage( Jity\HomepageBundle\Entity\AbstractPage $pages )

addPage

addPage

Add a page to the entity.

Parameters

$pages
Jity\HomepageBundle\Entity\Page
$pages Page to add

Returns

Jity\HomepageBundle\Entity\User
public Doctrine\Common\Collections\Collection
# getPages( )

getPages

getPages

Get all pages assigned to the entity.

Returns

Doctrine\Common\Collections\Collection
public string
# getUsername( )

getUsername

getUsername

Get the email as the username of the entity.

Returns

string
$email
public string
# getSalt( )

getSalt

getSalt

Get the salt for the password of the entity.

Returns

string
$salt
public Jity\HomepageBundle\Entity\User
# setSalt( string $salt = null )

setSalt

setSalt

Set the salt for the password of the entity. If Parameter $salt is empty, a new Salt will be generated

Parameters

$salt
string
$salt Salt of the user

Returns

Jity\HomepageBundle\Entity\User
public Jity\HomepageBundle\Entity\User
# addGroup( Jity\HomepageBundle\Entity\Group $groups )

addGroup

addGroup

Add a group to the entity.

Parameters

$groups
Jity\HomepageBundle\Entity\Group
$groups Group to add

Returns

Jity\HomepageBundle\Entity\User
public Doctrine\Common\Collections\Collection
# getGroups( )

getGroups

getGroups

Get all groups assigned to the entity.

Returns

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

getRoles

getRoles

Get all roles (groups) assigned to the entity.

Returns

array
$groups
public
# eraseCredentials( )

eraseCredentials

eraseCredentials

Erase Credentials of the entity.

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

isEqualTo

isEqualTo

Validate a User with the entity.

Parameters

$user
Symfony\Component\Security\Core\User\UserInterface
$user User to check against

Returns

boolean
public boolean
# isAccountNonExpired( )

isAccountNonExpired

isAccountNonExpired

Validate Account is not Expired.

Returns

boolean
public boolean
# isAccountNonLocked( )

isAccountNonLocked

isAccountNonLocked

Validate Account is not Locked.

Returns

boolean
public boolean
# isCredentialsNonExpired( )

isCredentialsNonExpired

isCredentialsNonExpired

Validate Account Credentials are not Expired.

Returns

boolean
public boolean
# isEnabled( )

isEnabled

isEnabled

Validate Account is enabled.

Returns

boolean
public string
# serialize( )

serialize

serialize

Serializes the content of the current User object.

Returns

string

Implementation of

Serializable::serialize()
public
# unserialize( string $serialized )

unserialize

unserialize

Unserializes the given string in the current User object.

Parameters

$serialized
string
$serialized Serialized entity

Implementation of

Serializable::unserialize()
public Jity\HomepageBundle\Entity\User
# removePage( Jity\HomepageBundle\Entity\AbstractPage $page )

removePage

removePage

Remove a page of the entity.

Parameters

$page
Jity\HomepageBundle\Entity\Page
$page Page to remove

Returns

Jity\HomepageBundle\Entity\User
public Jity\HomepageBundle\Entity\User
# removeGroup( Jity\HomepageBundle\Entity\Group $group )

removeGroup

removeGroup

Remove a group of the entity.

Parameters

$group
Jity\HomepageBundle\Entity\Group
$group Group to remove

Returns

Jity\HomepageBundle\Entity\User
public Jity\HomepageBundle\Entity\User
# addLastEditedPage( Jity\HomepageBundle\Entity\AbstractPage $lastEditedPage )

addLastEditedPage

addLastEditedPage

Add a lastEditedPage to the entity.

Parameters

$lastEditedPage
Jity\HomepageBundle\Entity\AbstractPage
$lastEditedPage Page to add

Returns

Jity\HomepageBundle\Entity\User
public Jity\HomepageBundle\Entity\User
# removeLastEditedPage( Jity\HomepageBundle\Entity\AbstractPage $lastEditedPage )

removeLastEditedPage

removeLastEditedPage

Remove a lastEditedPage of the entity.

Parameters

$lastEditedPage
Jity\HomepageBundle\Entity\AbstractPage
$lastEditedPage Page to remove

Returns

Jity\HomepageBundle\Entity\User
public Doctrine\Common\Collections\Collection
# getLastEditedPages( )

getLastEditedPages

getLastEditedPages

Get all lastEditedPages assigned to the entity.

Returns

Doctrine\Common\Collections\Collection
public Jity\HomepageBundle\Entity\User
# setType( string $type )

setType

setType

Set the type of the entity.

Parameters

$type
string
$type Type of the entity

Returns

Jity\HomepageBundle\Entity\User
public string
# getType( )

getType

getType

Get the type of the entity.

Returns

string
public Jity\HomepageBundle\Entity\User
# setPicture( string $picture )

setPicture

setPicture

Set the picture of the entity.

Parameters

$picture
string
$picture Picture of the user

Returns

Jity\HomepageBundle\Entity\User
public string
# getPicture( )

getPicture

getPicture

Get the picture of the entity.

Returns

string
public Jity\HomepageBundle\Entity\User
# addComment( Jity\HomepageBundle\Entity\Comment $comment )

addComment

addComment

Add a comment to the entity.

Parameters

$comment
Jity\HomepageBundle\Entity\Comment
$comment Comment to add

Returns

Jity\HomepageBundle\Entity\User
public Jity\HomepageBundle\Entity\User
# removeComment( Jity\HomepageBundle\Entity\Comment $comment )

removeComment

removeComment

Remove a comment assigned to the entity.

Parameters

$comment
Jity\HomepageBundle\Entity\Comment
$comment Comment to remove

Returns

Jity\HomepageBundle\Entity\User
public Doctrine\Common\Collections\Collection
# getComments( )

getComments

getComments

Get all comments assigned to the entity.

Returns

Doctrine\Common\Collections\Collection
Constants summary
integer STATUS_ACTIVE 1
#
integer STATUS_LOCKED 2
#
Properties summary
protected mixed $id
#

ORM\Column(type="integer")

ORM\GeneratedValue(strategy="AUTO")

ORM\Id

protected mixed $type
#

ORM\Column(type="string",

length=50)
protected mixed $email
#

ORM\Column(type="string",

unique=true)
protected mixed $password
#

ORM\Column(type="string")

protected mixed $salt
#

ORM\Column(type="string")

protected mixed $firstName
#

ORM\Column(type="string")

protected mixed $lastName
#

ORM\Column(type="string")

protected mixed $picture
#

ORM\Column(type="string",

nullable=true)
protected mixed $status
#

ORM\Column(type="smallint")

protected mixed $lastLogin
#

ORM\Column(type="datetime")

protected mixed $registeredAt
#

ORM\Column(type="datetime")

protected mixed $pages
#

ORM\OneToMany(targetEntity="AbstractPage",

mappedBy="author")

ORM\OrderBy({"createdAt"

= "DESC"})
protected mixed $comments
#

ORM\OneToMany(targetEntity="Comment",

mappedBy="author")

ORM\OrderBy({"createdAt"

= "DESC"})
protected mixed $lastEditedPages
#

ORM\OneToMany(targetEntity="AbstractPage",

mappedBy="lastAuthor")

ORM\OrderBy({"updatedAt"

= "DESC"})
protected mixed $groups
#

ORM\JoinTable(name="users_groups")

ORM\ManyToMany(targetEntity="Group",

inversedBy="users")
API documentation generated by ApiGen 2.8.0