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
ファイルを表示 Open project: sulu/sulu Class Usage Examples

Protected Properties

Property 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

Public Methods

Method 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

Protected Methods

Method Description
getMainAccountContact ( ) Returns main account contact.

Method Details

__construct() public method

Constructor.
public __construct ( )

addAccountContact() public method

public addAccountContact ( AccountContact $accountContact )
$accountContact AccountContact

addBankAccount() public method

public addBankAccount ( BankAccount $bankAccount )
$bankAccount BankAccount

addCategory() public method

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

addContactAddress() public method

public addContactAddress ( ContactAddress $contactAddress )
$contactAddress ContactAddress

addEmail() public method

public addEmail ( Email $email )
$email Email

addFax() public method

public addFax ( Fax $fax )
$fax Fax

addLocale() public method

public addLocale ( ContactLocale $locale )
$locale ContactLocale

addMedia() public method

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

addNote() public method

public addNote ( Note $note )
$note Note

addPhone() public method

public addPhone ( Phone $phone )
$phone Phone

addTag() public method

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

addUrl() public method

public addUrl ( Url $url )
$url Url

getAccountContacts() public method

public getAccountContacts ( )

getAddresses() public method

public getAddresses ( )

getAvatar() public method

public getAvatar ( )

getBankAccounts() public method

public getBankAccounts ( )

getBirthday() public method

public getBirthday ( )

getCategories() public method

public getCategories ( )

getChanged() public method

public getChanged ( )

getChanger() public method

public getChanger ( )

getContactAddresses() public method

public getContactAddresses ( )

getCreated() public method

public getCreated ( )

getCreator() public method

public getCreator ( )

getEmails() public method

public getEmails ( )

getFaxes() public method

public getFaxes ( )

getFirstName() public method

public getFirstName ( )

getFormOfAddress() public method

public getFormOfAddress ( )

getFullName() public method

public getFullName ( ) : string
return string

getGender() public method

public getGender ( )

getId() public method

public getId ( )

getLastName() public method

public getLastName ( )

getLocales() public method

public getLocales ( )

getMainAccount() public method

public getMainAccount ( )

getMainAccountContact() protected method

Returns main account contact.
protected getMainAccountContact ( )

getMainAddress() public method

public getMainAddress ( )

getMainEmail() public method

public getMainEmail ( )

getMainFax() public method

public getMainFax ( )

getMainPhone() public method

public getMainPhone ( )

getMainUrl() public method

public getMainUrl ( )

getMedias() public method

public getMedias ( )

getMiddleName() public method

public getMiddleName ( )

getNewsletter() public method

public getNewsletter ( )

getNotes() public method

public getNotes ( )

getPhones() public method

public getPhones ( )

getPosition() public method

public getPosition ( )

getSalutation() public method

public getSalutation ( )

getTagNameArray() public method

public getTagNameArray ( )

getTags() public method

public getTags ( )

getTitle() public method

public getTitle ( )

getUrls() public method

public getUrls ( )

removeAccountContact() public method

public removeAccountContact ( AccountContact $accountContact )
$accountContact AccountContact

removeBankAccount() public method

public removeBankAccount ( BankAccount $bankAccounts )
$bankAccounts BankAccount

removeCategory() public method

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

removeContactAddress() public method

public removeContactAddress ( ContactAddress $contactAddress )
$contactAddress ContactAddress

removeEmail() public method

public removeEmail ( Email $email )
$email Email

removeFax() public method

public removeFax ( Fax $fax )
$fax Fax

removeLocale() public method

public removeLocale ( ContactLocale $locale )
$locale ContactLocale

removeMedia() public method

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

removeNote() public method

public removeNote ( Note $note )
$note Note

removePhone() public method

public removePhone ( Phone $phone )
$phone Phone

removeTag() public method

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

removeUrl() public method

public removeUrl ( Url $url )
$url Url

setAvatar() public method

public setAvatar ( $avatar )

setBirthday() public method

public setBirthday ( $birthday )

setChanger() public method

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

setCreator() public method

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

setCurrentPosition() public method

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

setFirstName() public method

public setFirstName ( $firstName )

setFormOfAddress() public method

public setFormOfAddress ( $formOfAddress )

setGender() public method

public setGender ( $gender )

setLastName() public method

public setLastName ( $lastName )

setMainEmail() public method

public setMainEmail ( $mainEmail )

setMainFax() public method

public setMainFax ( $mainFax )

setMainPhone() public method

public setMainPhone ( $mainPhone )

setMainUrl() public method

public setMainUrl ( $mainUrl )

setMiddleName() public method

public setMiddleName ( $middleName )

setNewsletter() public method

public setNewsletter ( $newsletter )

setPosition() public method

public setPosition ( $position )

setSalutation() public method

public setSalutation ( $salutation )

setTitle() public method

public setTitle ( $title )

toArray() public method

public toArray ( ) : array
return array

Property Details

$account protected_oe property

main account.
protected string $account
return string

$accountContacts protected_oe property

protected Collection,Doctrine\Common\Collections $accountContacts
return Doctrine\Common\Collections\Collection

$addresses protected_oe property

main account.
protected string $addresses
return string

$avatar protected_oe property

protected MediaInterface,Sulu\Bundle\MediaBundle\Entity $avatar
return Sulu\Bundle\MediaBundle\Entity\MediaInterface

$bankAccounts protected_oe property

protected Collection,Doctrine\Common\Collections $bankAccounts
return Doctrine\Common\Collections\Collection

$birthday protected_oe property

protected DateTime $birthday
return DateTime

$categories protected_oe property

protected Collection,Doctrine\Common\Collections $categories
return Doctrine\Common\Collections\Collection

$changed protected_oe property

protected DateTime $changed
return DateTime

$changer protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $changer
return Sulu\Component\Security\Authentication\UserInterface

$contactAddresses protected_oe property

protected Collection,Doctrine\Common\Collections $contactAddresses
return Doctrine\Common\Collections\Collection

$created protected_oe property

protected DateTime $created
return DateTime

$creator protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $creator
return Sulu\Component\Security\Authentication\UserInterface

$emails protected_oe property

protected Collection,Doctrine\Common\Collections $emails
return Doctrine\Common\Collections\Collection

$faxes protected_oe property

protected Collection,Doctrine\Common\Collections $faxes
return Doctrine\Common\Collections\Collection

$firstName protected_oe property

protected string $firstName
return string

$formOfAddress protected_oe property

protected int $formOfAddress
return integer

$gender protected_oe property

protected string $gender
return string

$id protected_oe property

protected int $id
return integer

$lastName protected_oe property

protected string $lastName
return string

$locales protected_oe property

protected Collection,Doctrine\Common\Collections $locales
return Doctrine\Common\Collections\Collection

$mainEmail protected_oe property

protected string $mainEmail
return string

$mainFax protected_oe property

protected string $mainFax
return string

$mainPhone protected_oe property

protected string $mainPhone
return string

$mainUrl protected_oe property

protected string $mainUrl
return string

$medias protected_oe property

protected Collection,Doctrine\Common\Collections $medias
return Doctrine\Common\Collections\Collection

$middleName protected_oe property

protected string $middleName
return string

$newsletter protected_oe property

protected bool $newsletter
return boolean

$notes protected_oe property

protected Collection,Doctrine\Common\Collections $notes
return Doctrine\Common\Collections\Collection

$phones protected_oe property

protected Collection,Doctrine\Common\Collections $phones
return Doctrine\Common\Collections\Collection

$position protected_oe property

protected string $position
return string

$salutation protected_oe property

protected string $salutation
return string

$tags protected_oe property

protected Collection,Doctrine\Common\Collections $tags
return Doctrine\Common\Collections\Collection

$title protected_oe property

protected string $title
return string

$urls protected_oe property

protected Collection,Doctrine\Common\Collections $urls
return Doctrine\Common\Collections\Collection