PHP Class Ojs\UserBundle\Entity\User

Inheritance: extends FOS\UserBundle\Model\User, implements Gedmo\Translatable\Translatable, implements HWI\Bundle\OAuthBundle\Security\Core\User\OAuthAwareUserProviderInterface, use trait Ojs\CoreBundle\Entity\GenericEntityTrait
Mostrar archivo Open project: ojs/ojs Class Usage Examples

Protected Properties

Property Type Description
$address string
$apiKey string
$authorDetails Doctrine\Common\Collections\ArrayCollection | Ojs\JournalBundle\Entity\Author[]
$avatar string
$billing_address string
$city string
$email string
$fax string
$firstName string
$gender string
$initials string
$lastName string
$phone string
$restrictedJournals Doctrine\Common\Collections\ArrayCollection | Ojs\JournalBundle\Entity\Journal[]
$roles array
$url string
$username string

Public Methods

Method Description
__construct ( )
__toString ( ) : string
addAuthorDetail ( Author $author )
addCustomField ( Ojs\UserBundle\Entity\CustomField $customFields ) : User Add customFields
addJournalUser ( JournalUser $journalUser ) : User Add journalUser
addMultipleMail ( MultipleMail $multipleMail ) Add multipleMails
addOauthAccount ( Ojs\UserBundle\Entity\UserOauthAccount $oauthAccounts ) : User Add oauthAccounts
addRestrictedJournal ( Journal $restrictedJournals ) : User Add restrictedJournals
addSubject ( Subject $subject )
generateApiKey ( ) Generates an API Key
generateToken ( )
getAbout ( ) : String
getAddress ( ) : string
getApiKey ( ) : string
getAuthorDetails ( ) : ArrayCollection | Author[]
getAvatar ( ) : string
getBillingAddress ( ) : string
getCity ( ) : string
getCountry ( ) : BulutYazilim\LocationBundle\Entity\Country
getCustomFields ( ) : Doctrine\Common\Collections\Collection Get customFields
getFax ( ) : string
getFirstName ( ) : string
getFullName ( )
getGender ( ) : string
getHeader ( ) : string
getId ( ) : integer Get id
getInitials ( ) : string
getInstitution ( ) : Institution
getInstitutionName ( ) : string
getJournalRoles ( Journal $journal = null )
getJournalRolesBag ( Journal $journal = null ) : array
getJournalUsers ( ) : Doctrine\Common\Collections\Collection
getLastName ( ) : string
getLocale ( ) : string
getMultipleMails ( ) : Doctrine\Common\Collections\Collection Get multipleMails
getOauthAccounts ( ) : Doctrine\Common\Collections\Collection Get oauthAccounts
getPhone ( ) : string
getPrivacy ( ) : boolean Get privacy
getRestrictedJournals ( ) : Doctrine\Common\Collections\Collection Get restrictedJournals
getSetting ( $key ) : mixed
getSettings ( ) : array | null
getSubjects ( ) : Doctrine\Common\Collections\Collection
getTitle ( ) : PersonTitle
getUrl ( ) : string
isAdmin ( )
isIndexable ( ) : boolean
isInstitutionNotListed ( ) : boolean
isPrivacy ( ) : boolean
loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface Loads the user by a given UserResponseInterface object.
removeAuthorDetail ( Author $author )
removeCustomField ( Ojs\UserBundle\Entity\CustomField $customFields ) Remove customFields
removeMultipleMail ( MultipleMail $multipleMail ) Remove multipleMails
removeOauthAccount ( Ojs\UserBundle\Entity\UserOauthAccount $oauthAccounts ) Remove oauthAccounts
removeRestrictedJournal ( Journal $restrictedJournals ) Remove restrictedJournals
removeSubject ( Subject $subject )
setAbout ( String $about )
setAddress ( string $address )
setApiKey ( string $apiKey ) : User
setAvatar ( string $avatar ) : User
setBillingAddress ( string $billing_address )
setCity ( string $city )
setCountry ( BulutYazilim\LocationBundle\Entity\Country $country ) : User
setCreated ( DateTime $created ) : User Set created
setFax ( string $fax )
setFirstName ( string $firstName ) : User Set firstName
setGender ( string $gender )
setHeader ( string $header )
setInitials ( string $initials )
setInstitution ( Institution $institution = null )
setInstitutionName ( string $institutionName )
setInstitutionNotListed ( boolean $institutionNotListed )
setJournalRoles ( Role[] | Doctrine\Common\Collections\Collection $roles = [] )
setJournals ( Doctrine\Common\Collections\Collection $journalUsers )
setLastName ( string $lastName )
setLocale ( mixed $locale )
setPhone ( string $phone )
setPrivacy ( boolean $privacy )
setSettings ( array $settings ) : User
setTitle ( PersonTitle $title = null )
setUpdated ( DateTime $updated ) : User Set updated
setUrl ( string $url )
toJson ( )

Method Details

__construct() public method

public __construct ( )

__toString() public method

public __toString ( ) : string
return string

addAuthorDetail() public method

public addAuthorDetail ( Author $author )
$author Ojs\JournalBundle\Entity\Author

addCustomField() public method

Add customFields
public addCustomField ( Ojs\UserBundle\Entity\CustomField $customFields ) : User
$customFields Ojs\UserBundle\Entity\CustomField
return User

addJournalUser() public method

Add journalUser
public addJournalUser ( JournalUser $journalUser ) : User
$journalUser Ojs\JournalBundle\Entity\JournalUser
return User

addMultipleMail() public method

Add multipleMails
public addMultipleMail ( MultipleMail $multipleMail )
$multipleMail MultipleMail

addOauthAccount() public method

Add oauthAccounts
public addOauthAccount ( Ojs\UserBundle\Entity\UserOauthAccount $oauthAccounts ) : User
$oauthAccounts Ojs\UserBundle\Entity\UserOauthAccount
return User

addRestrictedJournal() public method

Add restrictedJournals
public addRestrictedJournal ( Journal $restrictedJournals ) : User
$restrictedJournals Ojs\JournalBundle\Entity\Journal
return User

addSubject() public method

public addSubject ( Subject $subject )
$subject Ojs\JournalBundle\Entity\Subject

generateApiKey() public method

Generates an API Key
public generateApiKey ( )

generateToken() public method

public generateToken ( )

getAbout() public method

public getAbout ( ) : String
return String

getAddress() public method

public getAddress ( ) : string
return string

getApiKey() public method

public getApiKey ( ) : string
return string

getAuthorDetails() public method

public getAuthorDetails ( ) : ArrayCollection | Author[]
return Doctrine\Common\Collections\ArrayCollection | Ojs\JournalBundle\Entity\Author[]

getAvatar() public method

public getAvatar ( ) : string
return string

getBillingAddress() public method

public getBillingAddress ( ) : string
return string

getCity() public method

public getCity ( ) : string
return string

getCountry() public method

public getCountry ( ) : BulutYazilim\LocationBundle\Entity\Country
return BulutYazilim\LocationBundle\Entity\Country

getCustomFields() public method

Get customFields
public getCustomFields ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getFax() public method

public getFax ( ) : string
return string

getFirstName() public method

public getFirstName ( ) : string
return string

getFullName() public method

public getFullName ( )

getGender() public method

public getGender ( ) : string
return string

getHeader() public method

public getHeader ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getInitials() public method

public getInitials ( ) : string
return string

getInstitution() public method

public getInstitution ( ) : Institution
return Ojs\JournalBundle\Entity\Institution

getInstitutionName() public method

public getInstitutionName ( ) : string
return string

getJournalRoles() public method

public getJournalRoles ( Journal $journal = null )
$journal Ojs\JournalBundle\Entity\Journal

getJournalRolesBag() public method

public getJournalRolesBag ( Journal $journal = null ) : array
$journal Ojs\JournalBundle\Entity\Journal
return array

getJournalUsers() public method

public getJournalUsers ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getLastName() public method

public getLastName ( ) : string
return string

getLocale() public method

public getLocale ( ) : string
return string

getMultipleMails() public method

Get multipleMails
public getMultipleMails ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getOauthAccounts() public method

Get oauthAccounts
public getOauthAccounts ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getPhone() public method

public getPhone ( ) : string
return string

getPrivacy() public method

Get privacy
public getPrivacy ( ) : boolean
return boolean

getRestrictedJournals() public method

Get restrictedJournals
public getRestrictedJournals ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getSetting() public method

public getSetting ( $key ) : mixed
$key
return mixed

getSettings() public method

public getSettings ( ) : array | null
return array | null

getSubjects() public method

public getSubjects ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getTitle() public method

public getTitle ( ) : PersonTitle
return Ojs\JournalBundle\Entity\PersonTitle

getUrl() public method

public getUrl ( ) : string
return string

isAdmin() public method

public isAdmin ( )

isIndexable() public method

public isIndexable ( ) : boolean
return boolean

isInstitutionNotListed() public method

public isInstitutionNotListed ( ) : boolean
return boolean

isPrivacy() public method

public isPrivacy ( ) : boolean
return boolean

loadUserByOAuthUserResponse() public method

Loads the user by a given UserResponseInterface object.
public loadUserByOAuthUserResponse ( HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response ) : Symfony\Component\Security\Core\User\UserInterface
$response HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface
return Symfony\Component\Security\Core\User\UserInterface

removeAuthorDetail() public method

public removeAuthorDetail ( Author $author )
$author Ojs\JournalBundle\Entity\Author

removeCustomField() public method

Remove customFields
public removeCustomField ( Ojs\UserBundle\Entity\CustomField $customFields )
$customFields Ojs\UserBundle\Entity\CustomField

removeMultipleMail() public method

Remove multipleMails
public removeMultipleMail ( MultipleMail $multipleMail )
$multipleMail MultipleMail

removeOauthAccount() public method

Remove oauthAccounts
public removeOauthAccount ( Ojs\UserBundle\Entity\UserOauthAccount $oauthAccounts )
$oauthAccounts Ojs\UserBundle\Entity\UserOauthAccount

removeRestrictedJournal() public method

Remove restrictedJournals
public removeRestrictedJournal ( Journal $restrictedJournals )
$restrictedJournals Ojs\JournalBundle\Entity\Journal

removeSubject() public method

public removeSubject ( Subject $subject )
$subject Ojs\JournalBundle\Entity\Subject

setAbout() public method

public setAbout ( String $about )
$about String

setAddress() public method

public setAddress ( string $address )
$address string

setApiKey() public method

public setApiKey ( string $apiKey ) : User
$apiKey string
return User

setAvatar() public method

public setAvatar ( string $avatar ) : User
$avatar string
return User

setBillingAddress() public method

public setBillingAddress ( string $billing_address )
$billing_address string

setCity() public method

public setCity ( string $city )
$city string

setCountry() public method

public setCountry ( BulutYazilim\LocationBundle\Entity\Country $country ) : User
$country BulutYazilim\LocationBundle\Entity\Country
return User

setCreated() public method

Set created
public setCreated ( DateTime $created ) : User
$created DateTime
return User

setFax() public method

public setFax ( string $fax )
$fax string

setFirstName() public method

Set firstName
public setFirstName ( string $firstName ) : User
$firstName string
return User

setGender() public method

public setGender ( string $gender )
$gender string

setHeader() public method

public setHeader ( string $header )
$header string

setInitials() public method

public setInitials ( string $initials )
$initials string

setInstitution() public method

public setInstitution ( Institution $institution = null )
$institution Ojs\JournalBundle\Entity\Institution

setInstitutionName() public method

public setInstitutionName ( string $institutionName )
$institutionName string

setInstitutionNotListed() public method

public setInstitutionNotListed ( boolean $institutionNotListed )
$institutionNotListed boolean

setJournalRoles() public method

public setJournalRoles ( Role[] | Doctrine\Common\Collections\Collection $roles = [] )
$roles Role[] | Doctrine\Common\Collections\Collection

setJournals() public method

public setJournals ( Doctrine\Common\Collections\Collection $journalUsers )
$journalUsers Doctrine\Common\Collections\Collection

setLastName() public method

public setLastName ( string $lastName )
$lastName string

setLocale() public method

public setLocale ( mixed $locale )
$locale mixed

setPhone() public method

public setPhone ( string $phone )
$phone string

setPrivacy() public method

public setPrivacy ( boolean $privacy )
$privacy boolean

setSettings() public method

public setSettings ( array $settings ) : User
$settings array
return User

setTitle() public method

public setTitle ( PersonTitle $title = null )
$title Ojs\JournalBundle\Entity\PersonTitle

setUpdated() public method

Set updated
public setUpdated ( DateTime $updated ) : User
$updated DateTime
return User

setUrl() public method

public setUrl ( string $url )
$url string

toJson() public method

public toJson ( )

Property Details

$address protected_oe property

protected string $address
return string

$apiKey protected_oe property

protected string $apiKey
return string

$authorDetails protected_oe property

protected ArrayCollection,Doctrine\Common\Collections|Author[],Ojs\JournalBundle\Entity $authorDetails
return Doctrine\Common\Collections\ArrayCollection | Ojs\JournalBundle\Entity\Author[]

$avatar protected_oe property

protected string $avatar
return string

$billing_address protected_oe property

protected string $billing_address
return string

$city protected_oe property

protected string $city
return string

$email protected_oe property

protected string $email
return string

$fax protected_oe property

protected string $fax
return string

$firstName protected_oe property

protected string $firstName
return string

$gender protected_oe property

protected string $gender
return string

$initials protected_oe property

protected string $initials
return string

$lastName protected_oe property

protected string $lastName
return string

$phone protected_oe property

protected string $phone
return string

$restrictedJournals protected_oe property

protected ArrayCollection,Doctrine\Common\Collections|Journal[],Ojs\JournalBundle\Entity $restrictedJournals
return Doctrine\Common\Collections\ArrayCollection | Ojs\JournalBundle\Entity\Journal[]

$roles protected_oe property

protected array $roles
return array

$url protected_oe property

protected string $url
return string

$username protected_oe property

protected string $username
return string