PHP Class Sulu\Bundle\ContactBundle\Entity\Contact

Inheritance: extends Sulu\Bundle\CoreBundle\Entity\ApiEntity, implements Sulu\Component\Contact\Model\ContactInterface, implements Sulu\Component\Persistence\Model\AuditableInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Protected Properties

Свойство Type Description
$account string main account.
$accountContacts Doctrine\Common\Collections\Collection
$addresses string main account.
$avatar Sulu\Bundle\MediaBundle\Entity\MediaInterface
$bankAccounts Doctrine\Common\Collections\Collection
$birthday DateTime
$categories Doctrine\Common\Collections\Collection
$changed DateTime
$changer Sulu\Component\Security\Authentication\UserInterface
$contactAddresses Doctrine\Common\Collections\Collection
$created DateTime
$creator Sulu\Component\Security\Authentication\UserInterface
$emails Doctrine\Common\Collections\Collection
$faxes Doctrine\Common\Collections\Collection
$firstName string
$formOfAddress integer
$gender string
$id integer
$lastName string
$locales Doctrine\Common\Collections\Collection
$mainEmail string
$mainFax string
$mainPhone string
$mainUrl string
$medias Doctrine\Common\Collections\Collection
$middleName string
$newsletter boolean
$notes Doctrine\Common\Collections\Collection
$phones Doctrine\Common\Collections\Collection
$position string
$salutation string
$tags Doctrine\Common\Collections\Collection
$title string
$urls Doctrine\Common\Collections\Collection

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
addAccountContact ( AccountContact $accountContact )
addBankAccount ( BankAccount $bankAccount )
addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category )
addContactAddress ( ContactAddress $contactAddress )
addEmail ( Email $email )
addFax ( Fax $fax )
addLocale ( ContactLocale $locale )
addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media )
addNote ( Note $note )
addPhone ( Phone $phone )
addTag ( Tag $tag )
addUrl ( Url $url )
getAccountContacts ( )
getAddresses ( )
getAvatar ( )
getBankAccounts ( )
getBirthday ( )
getCategories ( )
getChanged ( )
getChanger ( )
getContactAddresses ( )
getCreated ( )
getCreator ( )
getEmails ( )
getFaxes ( )
getFirstName ( )
getFormOfAddress ( )
getFullName ( ) : string
getGender ( )
getId ( )
getLastName ( )
getLocales ( )
getMainAccount ( )
getMainAddress ( )
getMainEmail ( )
getMainFax ( )
getMainPhone ( )
getMainUrl ( )
getMedias ( )
getMiddleName ( )
getNewsletter ( )
getNotes ( )
getPhones ( )
getPosition ( )
getSalutation ( )
getTagNameArray ( )
getTags ( )
getTitle ( )
getUrls ( )
removeAccountContact ( AccountContact $accountContact )
removeBankAccount ( BankAccount $bankAccounts )
removeCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category )
removeContactAddress ( ContactAddress $contactAddress )
removeEmail ( Email $email )
removeFax ( Fax $fax )
removeLocale ( ContactLocale $locale )
removeMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media )
removeNote ( Note $note )
removePhone ( Phone $phone )
removeTag ( Tag $tag )
removeUrl ( Url $url )
setAvatar ( $avatar )
setBirthday ( $birthday )
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Contact Set changer.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Contact Set creator.
setCurrentPosition ( $position ) Sets position variable.
setFirstName ( $firstName )
setFormOfAddress ( $formOfAddress )
setGender ( $gender )
setLastName ( $lastName )
setMainEmail ( $mainEmail )
setMainFax ( $mainFax )
setMainPhone ( $mainPhone )
setMainUrl ( $mainUrl )
setMiddleName ( $middleName )
setNewsletter ( $newsletter )
setPosition ( $position )
setSalutation ( $salutation )
setTitle ( $title )
toArray ( ) : array

Méthodes protégées

Méthode Description
getMainAccountContact ( ) Returns main account contact.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

addAccountContact() public méthode

public addAccountContact ( AccountContact $accountContact )
$accountContact AccountContact

addBankAccount() public méthode

public addBankAccount ( BankAccount $bankAccount )
$bankAccount BankAccount

addCategory() public méthode

public addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category )
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface

addContactAddress() public méthode

public addContactAddress ( ContactAddress $contactAddress )
$contactAddress ContactAddress

addEmail() public méthode

public addEmail ( Email $email )
$email Email

addFax() public méthode

public addFax ( Fax $fax )
$fax Fax

addLocale() public méthode

public addLocale ( ContactLocale $locale )
$locale ContactLocale

addMedia() public méthode

public addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media )
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface

addNote() public méthode

public addNote ( Note $note )
$note Note

addPhone() public méthode

public addPhone ( Phone $phone )
$phone Phone

addTag() public méthode

public addTag ( Tag $tag )
$tag Sulu\Bundle\TagBundle\Entity\Tag

addUrl() public méthode

public addUrl ( Url $url )
$url Url

getAccountContacts() public méthode

public getAccountContacts ( )

getAddresses() public méthode

public getAddresses ( )

getAvatar() public méthode

public getAvatar ( )

getBankAccounts() public méthode

public getBankAccounts ( )

getBirthday() public méthode

public getBirthday ( )

getCategories() public méthode

public getCategories ( )

getChanged() public méthode

public getChanged ( )

getChanger() public méthode

public getChanger ( )

getContactAddresses() public méthode

public getContactAddresses ( )

getCreated() public méthode

public getCreated ( )

getCreator() public méthode

public getCreator ( )

getEmails() public méthode

public getEmails ( )

getFaxes() public méthode

public getFaxes ( )

getFirstName() public méthode

public getFirstName ( )

getFormOfAddress() public méthode

public getFormOfAddress ( )

getFullName() public méthode

public getFullName ( ) : string
Résultat string

getGender() public méthode

public getGender ( )

getId() public méthode

public getId ( )

getLastName() public méthode

public getLastName ( )

getLocales() public méthode

public getLocales ( )

getMainAccount() public méthode

public getMainAccount ( )

getMainAccountContact() protected méthode

Returns main account contact.
protected getMainAccountContact ( )

getMainAddress() public méthode

public getMainAddress ( )

getMainEmail() public méthode

public getMainEmail ( )

getMainFax() public méthode

public getMainFax ( )

getMainPhone() public méthode

public getMainPhone ( )

getMainUrl() public méthode

public getMainUrl ( )

getMedias() public méthode

public getMedias ( )

getMiddleName() public méthode

public getMiddleName ( )

getNewsletter() public méthode

public getNewsletter ( )

getNotes() public méthode

public getNotes ( )

getPhones() public méthode

public getPhones ( )

getPosition() public méthode

public getPosition ( )

getSalutation() public méthode

public getSalutation ( )

getTagNameArray() public méthode

public getTagNameArray ( )

getTags() public méthode

public getTags ( )

getTitle() public méthode

public getTitle ( )

getUrls() public méthode

public getUrls ( )

removeAccountContact() public méthode

public removeAccountContact ( AccountContact $accountContact )
$accountContact AccountContact

removeBankAccount() public méthode

public removeBankAccount ( BankAccount $bankAccounts )
$bankAccounts BankAccount

removeCategory() public méthode

public removeCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category )
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface

removeContactAddress() public méthode

public removeContactAddress ( ContactAddress $contactAddress )
$contactAddress ContactAddress

removeEmail() public méthode

public removeEmail ( Email $email )
$email Email

removeFax() public méthode

public removeFax ( Fax $fax )
$fax Fax

removeLocale() public méthode

public removeLocale ( ContactLocale $locale )
$locale ContactLocale

removeMedia() public méthode

public removeMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media )
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface

removeNote() public méthode

public removeNote ( Note $note )
$note Note

removePhone() public méthode

public removePhone ( Phone $phone )
$phone Phone

removeTag() public méthode

public removeTag ( Tag $tag )
$tag Sulu\Bundle\TagBundle\Entity\Tag

removeUrl() public méthode

public removeUrl ( Url $url )
$url Url

setAvatar() public méthode

public setAvatar ( $avatar )

setBirthday() public méthode

public setBirthday ( $birthday )

setChanger() public méthode

Set changer.
public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Contact
$changer Sulu\Component\Security\Authentication\UserInterface
Résultat Contact

setCreator() public méthode

Set creator.
public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Contact
$creator Sulu\Component\Security\Authentication\UserInterface
Résultat Contact

setCurrentPosition() public méthode

Sets position variable.
public setCurrentPosition ( $position )
$position

setFirstName() public méthode

public setFirstName ( $firstName )

setFormOfAddress() public méthode

public setFormOfAddress ( $formOfAddress )

setGender() public méthode

public setGender ( $gender )

setLastName() public méthode

public setLastName ( $lastName )

setMainEmail() public méthode

public setMainEmail ( $mainEmail )

setMainFax() public méthode

public setMainFax ( $mainFax )

setMainPhone() public méthode

public setMainPhone ( $mainPhone )

setMainUrl() public méthode

public setMainUrl ( $mainUrl )

setMiddleName() public méthode

public setMiddleName ( $middleName )

setNewsletter() public méthode

public setNewsletter ( $newsletter )

setPosition() public méthode

public setPosition ( $position )

setSalutation() public méthode

public setSalutation ( $salutation )

setTitle() public méthode

public setTitle ( $title )

toArray() public méthode

public toArray ( ) : array
Résultat array

Property Details

$account protected_oe property

main account.
protected string $account
Résultat string

$accountContacts protected_oe property

protected Collection,Doctrine\Common\Collections $accountContacts
Résultat Doctrine\Common\Collections\Collection

$addresses protected_oe property

main account.
protected string $addresses
Résultat string

$avatar protected_oe property

protected MediaInterface,Sulu\Bundle\MediaBundle\Entity $avatar
Résultat Sulu\Bundle\MediaBundle\Entity\MediaInterface

$bankAccounts protected_oe property

protected Collection,Doctrine\Common\Collections $bankAccounts
Résultat Doctrine\Common\Collections\Collection

$birthday protected_oe property

protected DateTime $birthday
Résultat DateTime

$categories protected_oe property

protected Collection,Doctrine\Common\Collections $categories
Résultat Doctrine\Common\Collections\Collection

$changed protected_oe property

protected DateTime $changed
Résultat DateTime

$changer protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $changer
Résultat Sulu\Component\Security\Authentication\UserInterface

$contactAddresses protected_oe property

protected Collection,Doctrine\Common\Collections $contactAddresses
Résultat Doctrine\Common\Collections\Collection

$created protected_oe property

protected DateTime $created
Résultat DateTime

$creator protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $creator
Résultat Sulu\Component\Security\Authentication\UserInterface

$emails protected_oe property

protected Collection,Doctrine\Common\Collections $emails
Résultat Doctrine\Common\Collections\Collection

$faxes protected_oe property

protected Collection,Doctrine\Common\Collections $faxes
Résultat Doctrine\Common\Collections\Collection

$firstName protected_oe property

protected string $firstName
Résultat string

$formOfAddress protected_oe property

protected int $formOfAddress
Résultat integer

$gender protected_oe property

protected string $gender
Résultat string

$id protected_oe property

protected int $id
Résultat integer

$lastName protected_oe property

protected string $lastName
Résultat string

$locales protected_oe property

protected Collection,Doctrine\Common\Collections $locales
Résultat Doctrine\Common\Collections\Collection

$mainEmail protected_oe property

protected string $mainEmail
Résultat string

$mainFax protected_oe property

protected string $mainFax
Résultat string

$mainPhone protected_oe property

protected string $mainPhone
Résultat string

$mainUrl protected_oe property

protected string $mainUrl
Résultat string

$medias protected_oe property

protected Collection,Doctrine\Common\Collections $medias
Résultat Doctrine\Common\Collections\Collection

$middleName protected_oe property

protected string $middleName
Résultat string

$newsletter protected_oe property

protected bool $newsletter
Résultat boolean

$notes protected_oe property

protected Collection,Doctrine\Common\Collections $notes
Résultat Doctrine\Common\Collections\Collection

$phones protected_oe property

protected Collection,Doctrine\Common\Collections $phones
Résultat Doctrine\Common\Collections\Collection

$position protected_oe property

protected string $position
Résultat string

$salutation protected_oe property

protected string $salutation
Résultat string

$tags protected_oe property

protected Collection,Doctrine\Common\Collections $tags
Résultat Doctrine\Common\Collections\Collection

$title protected_oe property

protected string $title
Résultat string

$urls protected_oe property

protected Collection,Doctrine\Common\Collections $urls
Résultat Doctrine\Common\Collections\Collection