PHP Interface Sulu\Component\Contact\Model\ContactInterface

Exibir arquivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
addAccountContact ( AccountContact $accountContact ) : Sulu\Component\Contact\Model\ContactInterface Add account contact.
addBankAccount ( BankAccount $bankAccount ) : Sulu\Component\Contact\Model\ContactInterface Add bank account.
addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : Sulu\Component\Contact\Model\ContactInterface Add category.
addContactAddress ( ContactAddress $contactAddress ) : Sulu\Component\Contact\Model\ContactInterface Add contact address.
addEmail ( Email $email ) : Sulu\Component\Contact\Model\ContactInterface Add email.
addFax ( Fax $fax ) : Sulu\Component\Contact\Model\ContactInterface Add fax.
addLocale ( ContactLocale $locale ) : Sulu\Component\Contact\Model\ContactInterface Add locale.
addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : Sulu\Component\Contact\Model\ContactInterface Add medias.
addNote ( Note $note ) : Sulu\Component\Contact\Model\ContactInterface Add note.
addPhone ( Phone $phone ) : Sulu\Component\Contact\Model\ContactInterface Add phone.
addTag ( Tag $tag ) : Sulu\Component\Contact\Model\ContactInterface Add tag.
addUrl ( Url $url ) : Sulu\Component\Contact\Model\ContactInterface Add url.
getAccountContacts ( ) : Doctrine\Common\Collections\Collection Get account contacts.
getAddresses ( ) Returns addresses.
getAvatar ( ) : Media Get the contacts avatar.
getBankAccounts ( ) : Doctrine\Common\Collections\Collection Get bankAccounts.
getBirthday ( ) : DateTime Get birthday.
getCategories ( ) : Doctrine\Common\Collections\Collection Get categories.
getContactAddresses ( ) : Doctrine\Common\Collections\Collection Get contact addresses.
getEmails ( ) : Doctrine\Common\Collections\Collection Get emails.
getFaxes ( ) : Doctrine\Common\Collections\Collection Get faxes.
getFirstName ( ) : string Get first name.
getFormOfAddress ( ) : integer Get form of address.
getGender ( ) : string Get gender.
getId ( ) : integer Get id.
getLastName ( ) : string Get last name.
getLocales ( ) : Doctrine\Common\Collections\Collection Get locales.
getMainAccount ( ) : Sulu\Bundle\ContactBundle\Entity\AccountInterface | null Returns main account.
getMainAddress ( ) : mixed Returns the main address.
getMainEmail ( ) : string Get main email.
getMainFax ( ) : string Get main fax.
getMainPhone ( ) : string Get main phone.
getMainUrl ( ) : string Get main url.
getMedias ( ) : Doctrine\Common\Collections\Collection Get medias.
getMiddleName ( ) : string Get middle name.
getNewsletter ( ) : boolean Get newsletter.
getNotes ( ) : Doctrine\Common\Collections\Collection Get notes.
getPhones ( ) : Doctrine\Common\Collections\Collection Get phones.
getPosition ( ) : string Get position.
getSalutation ( ) : string Get salutation.
getTagNameArray ( ) : array Parse tags to array containing tag names.
getTags ( ) : Doctrine\Common\Collections\Collection Get tags.
getTitle ( ) : string Get title.
getUrls ( ) : Doctrine\Common\Collections\Collection Get urls.
removeAccountContact ( AccountContact $accountContact ) Remove account contact.
removeBankAccount ( BankAccount $bankAccount ) Remove bank account.
removeCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) Remove category.
removeContactAddress ( ContactAddress $contactAddress ) Remove contact address.
removeEmail ( Email $email ) Remove email.
removeFax ( Fax $fax ) Remove fax.
removeLocale ( ContactLocale $locale ) Remove locale.
removeMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) Remove media.
removeNote ( Note $note ) Remove note.
removePhone ( Phone $phone ) Remove phone.
removeTag ( Tag $tag ) Remove tag.
removeUrl ( Url $url ) Remove url.
setAvatar ( Media $avatar ) Sets the avatar for the contact.
setBirthday ( DateTime $birthday ) : Sulu\Component\Contact\Model\ContactInterface Set birthday.
setFirstName ( string $firstName ) : Sulu\Component\Contact\Model\ContactInterface Set first name.
setFormOfAddress ( integer $formOfAddress ) : Sulu\Component\Contact\Model\ContactInterface Set form of address.
setGender ( string $gender ) : Sulu\Component\Contact\Model\ContactInterface Set gender.
setLastName ( string $lastName ) : Sulu\Component\Contact\Model\ContactInterface Set last name.
setMainEmail ( string $mainEmail ) : Sulu\Component\Contact\Model\ContactInterface Set main email.
setMainFax ( string $mainFax ) : Sulu\Component\Contact\Model\ContactInterface Set main fax.
setMainPhone ( string $mainPhone ) : Sulu\Component\Contact\Model\ContactInterface Set main phone.
setMainUrl ( string $mainUrl ) : Sulu\Component\Contact\Model\ContactInterface Set main url.
setMiddleName ( string $middleName ) : Sulu\Component\Contact\Model\ContactInterface Set middle name.
setNewsletter ( boolean $newsletter ) : Sulu\Component\Contact\Model\ContactInterface Set newsletter.
setPosition ( string $position ) : Sulu\Component\Contact\Model\ContactInterface Set position.
setSalutation ( string $salutation ) : Sulu\Component\Contact\Model\ContactInterface Set salutation.
setTitle ( object $title ) : Sulu\Component\Contact\Model\ContactInterface Set title.

Method Details

addAccountContact() public method

Add account contact.
public addAccountContact ( AccountContact $accountContact ) : Sulu\Component\Contact\Model\ContactInterface
$accountContact Sulu\Bundle\ContactBundle\Entity\AccountContact
return Sulu\Component\Contact\Model\ContactInterface

addBankAccount() public method

Add bank account.
public addBankAccount ( BankAccount $bankAccount ) : Sulu\Component\Contact\Model\ContactInterface
$bankAccount Sulu\Bundle\ContactBundle\Entity\BankAccount
return Sulu\Component\Contact\Model\ContactInterface

addCategory() public method

Add category.
public addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : Sulu\Component\Contact\Model\ContactInterface
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
return Sulu\Component\Contact\Model\ContactInterface

addContactAddress() public method

Add contact address.
public addContactAddress ( ContactAddress $contactAddress ) : Sulu\Component\Contact\Model\ContactInterface
$contactAddress Sulu\Bundle\ContactBundle\Entity\ContactAddress
return Sulu\Component\Contact\Model\ContactInterface

addEmail() public method

Add email.
public addEmail ( Email $email ) : Sulu\Component\Contact\Model\ContactInterface
$email Sulu\Bundle\ContactBundle\Entity\Email
return Sulu\Component\Contact\Model\ContactInterface

addFax() public method

Add fax.
public addFax ( Fax $fax ) : Sulu\Component\Contact\Model\ContactInterface
$fax Sulu\Bundle\ContactBundle\Entity\Fax
return Sulu\Component\Contact\Model\ContactInterface

addLocale() public method

Add locale.
public addLocale ( ContactLocale $locale ) : Sulu\Component\Contact\Model\ContactInterface
$locale Sulu\Bundle\ContactBundle\Entity\ContactLocale
return Sulu\Component\Contact\Model\ContactInterface

addMedia() public method

Add medias.
public addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : Sulu\Component\Contact\Model\ContactInterface
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface
return Sulu\Component\Contact\Model\ContactInterface

addNote() public method

Add note.
public addNote ( Note $note ) : Sulu\Component\Contact\Model\ContactInterface
$note Sulu\Bundle\ContactBundle\Entity\Note
return Sulu\Component\Contact\Model\ContactInterface

addPhone() public method

Add phone.
public addPhone ( Phone $phone ) : Sulu\Component\Contact\Model\ContactInterface
$phone Sulu\Bundle\ContactBundle\Entity\Phone
return Sulu\Component\Contact\Model\ContactInterface

addTag() public method

Add tag.
public addTag ( Tag $tag ) : Sulu\Component\Contact\Model\ContactInterface
$tag Sulu\Bundle\TagBundle\Entity\Tag
return Sulu\Component\Contact\Model\ContactInterface

addUrl() public method

Add url.
public addUrl ( Url $url ) : Sulu\Component\Contact\Model\ContactInterface
$url Sulu\Bundle\ContactBundle\Entity\Url
return Sulu\Component\Contact\Model\ContactInterface

getAccountContacts() public method

Get account contacts.
public getAccountContacts ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getAddresses() public method

Returns addresses.
public getAddresses ( )

getAvatar() public method

Get the contacts avatar.
public getAvatar ( ) : Media
return Sulu\Bundle\MediaBundle\Entity\Media

getBankAccounts() public method

Get bankAccounts.
public getBankAccounts ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getBirthday() public method

Get birthday.
public getBirthday ( ) : DateTime
return DateTime

getCategories() public method

Get categories.
public getCategories ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getContactAddresses() public method

Get contact addresses.
public getContactAddresses ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getEmails() public method

Get emails.
public getEmails ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getFaxes() public method

Get faxes.
public getFaxes ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getFirstName() public method

Get first name.
public getFirstName ( ) : string
return string

getFormOfAddress() public method

Get form of address.
public getFormOfAddress ( ) : integer
return integer

getGender() public method

Get gender.
public getGender ( ) : string
return string

getId() public method

Get id.
public getId ( ) : integer
return integer

getLastName() public method

Get last name.
public getLastName ( ) : string
return string

getLocales() public method

Get locales.
public getLocales ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getMainAccount() public method

Returns main account.
public getMainAccount ( ) : Sulu\Bundle\ContactBundle\Entity\AccountInterface | null
return Sulu\Bundle\ContactBundle\Entity\AccountInterface | null

getMainAddress() public method

Returns the main address.
public getMainAddress ( ) : mixed
return mixed

getMainEmail() public method

Get main email.
public getMainEmail ( ) : string
return string

getMainFax() public method

Get main fax.
public getMainFax ( ) : string
return string

getMainPhone() public method

Get main phone.
public getMainPhone ( ) : string
return string

getMainUrl() public method

Get main url.
public getMainUrl ( ) : string
return string

getMedias() public method

Get medias.
public getMedias ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getMiddleName() public method

Get middle name.
public getMiddleName ( ) : string
return string

getNewsletter() public method

Get newsletter.
public getNewsletter ( ) : boolean
return boolean

getNotes() public method

Get notes.
public getNotes ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getPhones() public method

Get phones.
public getPhones ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getPosition() public method

Get position.
public getPosition ( ) : string
return string

getSalutation() public method

Get salutation.
public getSalutation ( ) : string
return string

getTagNameArray() public method

Parse tags to array containing tag names.
public getTagNameArray ( ) : array
return array

getTags() public method

Get tags.
public getTags ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getTitle() public method

Get title.
public getTitle ( ) : string
return string

getUrls() public method

Get urls.
public getUrls ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

removeAccountContact() public method

Remove account contact.
public removeAccountContact ( AccountContact $accountContact )
$accountContact Sulu\Bundle\ContactBundle\Entity\AccountContact

removeBankAccount() public method

Remove bank account.
public removeBankAccount ( BankAccount $bankAccount )
$bankAccount Sulu\Bundle\ContactBundle\Entity\BankAccount

removeCategory() public method

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

removeContactAddress() public method

Remove contact address.
public removeContactAddress ( ContactAddress $contactAddress )
$contactAddress Sulu\Bundle\ContactBundle\Entity\ContactAddress

removeEmail() public method

Remove email.
public removeEmail ( Email $email )
$email Sulu\Bundle\ContactBundle\Entity\Email

removeFax() public method

Remove fax.
public removeFax ( Fax $fax )
$fax Sulu\Bundle\ContactBundle\Entity\Fax

removeLocale() public method

Remove locale.
public removeLocale ( ContactLocale $locale )
$locale Sulu\Bundle\ContactBundle\Entity\ContactLocale

removeMedia() public method

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

removeNote() public method

Remove note.
public removeNote ( Note $note )
$note Sulu\Bundle\ContactBundle\Entity\Note

removePhone() public method

Remove phone.
public removePhone ( Phone $phone )
$phone Sulu\Bundle\ContactBundle\Entity\Phone

removeTag() public method

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

removeUrl() public method

Remove url.
public removeUrl ( Url $url )
$url Sulu\Bundle\ContactBundle\Entity\Url

setAvatar() public method

Sets the avatar for the contact.
public setAvatar ( Media $avatar )
$avatar Sulu\Bundle\MediaBundle\Entity\Media

setBirthday() public method

Set birthday.
public setBirthday ( DateTime $birthday ) : Sulu\Component\Contact\Model\ContactInterface
$birthday DateTime
return Sulu\Component\Contact\Model\ContactInterface

setFirstName() public method

Set first name.
public setFirstName ( string $firstName ) : Sulu\Component\Contact\Model\ContactInterface
$firstName string
return Sulu\Component\Contact\Model\ContactInterface

setFormOfAddress() public method

Set form of address.
public setFormOfAddress ( integer $formOfAddress ) : Sulu\Component\Contact\Model\ContactInterface
$formOfAddress integer
return Sulu\Component\Contact\Model\ContactInterface

setGender() public method

Set gender.
public setGender ( string $gender ) : Sulu\Component\Contact\Model\ContactInterface
$gender string
return Sulu\Component\Contact\Model\ContactInterface

setLastName() public method

Set last name.
public setLastName ( string $lastName ) : Sulu\Component\Contact\Model\ContactInterface
$lastName string
return Sulu\Component\Contact\Model\ContactInterface

setMainEmail() public method

Set main email.
public setMainEmail ( string $mainEmail ) : Sulu\Component\Contact\Model\ContactInterface
$mainEmail string
return Sulu\Component\Contact\Model\ContactInterface

setMainFax() public method

Set main fax.
public setMainFax ( string $mainFax ) : Sulu\Component\Contact\Model\ContactInterface
$mainFax string
return Sulu\Component\Contact\Model\ContactInterface

setMainPhone() public method

Set main phone.
public setMainPhone ( string $mainPhone ) : Sulu\Component\Contact\Model\ContactInterface
$mainPhone string
return Sulu\Component\Contact\Model\ContactInterface

setMainUrl() public method

Set main url.
public setMainUrl ( string $mainUrl ) : Sulu\Component\Contact\Model\ContactInterface
$mainUrl string
return Sulu\Component\Contact\Model\ContactInterface

setMiddleName() public method

Set middle name.
public setMiddleName ( string $middleName ) : Sulu\Component\Contact\Model\ContactInterface
$middleName string
return Sulu\Component\Contact\Model\ContactInterface

setNewsletter() public method

Set newsletter.
public setNewsletter ( boolean $newsletter ) : Sulu\Component\Contact\Model\ContactInterface
$newsletter boolean
return Sulu\Component\Contact\Model\ContactInterface

setPosition() public method

Set position.
public setPosition ( string $position ) : Sulu\Component\Contact\Model\ContactInterface
$position string
return Sulu\Component\Contact\Model\ContactInterface

setSalutation() public method

Set salutation.
public setSalutation ( string $salutation ) : Sulu\Component\Contact\Model\ContactInterface
$salutation string
return Sulu\Component\Contact\Model\ContactInterface

setTitle() public method

Set title.
public setTitle ( object $title ) : Sulu\Component\Contact\Model\ContactInterface
$title object
return Sulu\Component\Contact\Model\ContactInterface