PHP Class Sulu\Bundle\ContactBundle\Api\Account

Inheritance: extends Sulu\Component\Rest\ApiWrapper
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, string $locale )
addAccountAddress ( AccountAddress $accountAddress ) : Account Add accountAddresses.
addAccountContact ( AccountContact $accountContact ) : Account Add accountContacts.
addBankAccount ( BankAccount $bankAccount ) : Account Add bankAccounts.
addEmail ( Email $email ) : Account Add emails.
addFax ( Fax $fax ) : Account Add faxes.
addFaxe ( Fax $fax ) : Account Add faxes.
addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : Account Add media.
addNote ( Note $notes ) : Account Add notes.
addPhone ( Phone $phones ) : Account Add phones.
addTag ( Tag $tag ) : Account Add tags.
addUrl ( Url $url ) : Account Add urls.
getAccountAddresses ( ) : AccountAddress[] Get accountAddresses.
getAccountContacts ( ) : AccountContact[] Get accountContacts.
getAddresses ( ) returns addresses.
getBankAccounts ( ) : BankAccount[] Get bankAccounts.
getCategories ( ) : Category[] Get categories.
getChanged ( ) : DateTime Get changed.
getContacts ( ) : Contact[] Get contacts.
getCorporation ( ) : string Get corporation.
getCreated ( ) : DateTime Get created.
getDepth ( ) : integer Get depth.
getEmails ( ) : Email[] Get emails.
getExternalId ( ) : string Get externalId.
getFaxes ( ) : Fax[] Get faxes.
getId ( ) : integer Returns the id of the product.
getLogo ( ) : Media Get the accounts logo and return the array of different formats.
getMainAddress ( ) : mixed Returns the main address.
getMainContact ( ) : Account Get mainContact.
getMainEmail ( ) : string Get mainEmail.
getMainFax ( ) : string Get mainFax.
getMainPhone ( ) : string Get mainPhone.
getMainUrl ( ) : string Get mainUrl.
getMedias ( ) : Media[] Get medias.
getName ( ) : string Get name.
getNotes ( ) : Note[] Get notes.
getNumber ( ) : string Get number.
getParent ( ) : Sulu\Bundle\ContactBundle\Entity\AccountInterface Get parent.
getPhones ( ) : Phone[] Get phones.
getPlaceOfJurisdiction ( ) : string Get placeOfJurisdiction.
getRegisterNumber ( ) : string Get registerNumber.
getTags ( ) : Tag[] Get tags.
getType ( ) : string Get type of api entity.
getUid ( ) : string Get uid.
getUrls ( ) : Url[] Get urls.
removeAccountAddress ( AccountAddress $accountAddresses ) Remove accountAddresses.
removeAccountContact ( AccountContact $accountContact ) Remove accountContacts.
removeBankAccount ( BankAccount $bankAccount ) Remove bankAccounts.
removeEmail ( Email $email ) Remove emails.
removeFax ( Fax $fax ) Remove faxes.
removeFaxe ( Fax $fax ) : Account Remove faxes.
removeMedia ( MediaInterfae $media ) Remove medias.
removeNote ( Note $note ) Remove notes.
removePhone ( Phone $phone ) Remove phones.
removeTag ( Tag $tag ) Remove tags.
removeUrl ( Url $url ) Remove urls.
setCorporation ( string $corporation ) : Account Set corporation.
setDepth ( integer $depth ) : Account Set depth.
setExternalId ( string $externalId ) : Account Set externalId.
setLft ( integer $lft ) : Account Set lft.
setLogo ( Media $logo ) Sets the logo (media-api object).
setMainContact ( Contact $mainContact = null ) : Account Set mainContact.
setMainEmail ( string $mainEmail ) : Account Set mainEmail.
setMainFax ( string $mainFax ) : Account Set mainFax.
setMainPhone ( string $mainPhone ) : Account Set mainPhone.
setMainUrl ( string $mainUrl ) : Account Set mainUrl.
setName ( string $name ) : Account Set name.
setNumber ( string $number ) : Account Set number.
setParent ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $parent = null ) : Account Set parent.
setPlaceOfJurisdiction ( string $placeOfJurisdiction ) : Account Set placeOfJurisdiction.
setRegisterNumber ( string $registerNumber ) : Account Set registerNumber.
setRgt ( integer $rgt ) : Account Set rgt.
setUid ( string $uid ) : Account Set uid.

Method Details

__construct() public méthode

public __construct ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, string $locale )
$account Sulu\Bundle\ContactBundle\Entity\AccountInterface
$locale string The locale of this product

addAccountAddress() public méthode

Add accountAddresses.
public addAccountAddress ( AccountAddress $accountAddress ) : Account
$accountAddress Sulu\Bundle\ContactBundle\Entity\AccountAddress
Résultat Account

addAccountContact() public méthode

Add accountContacts.
public addAccountContact ( AccountContact $accountContact ) : Account
$accountContact Sulu\Bundle\ContactBundle\Entity\AccountContact
Résultat Account

addBankAccount() public méthode

Add bankAccounts.
public addBankAccount ( BankAccount $bankAccount ) : Account
$bankAccount Sulu\Bundle\ContactBundle\Entity\BankAccount
Résultat Account

addEmail() public méthode

Add emails.
public addEmail ( Email $email ) : Account
$email Sulu\Bundle\ContactBundle\Entity\Email
Résultat Account

addFax() public méthode

Add faxes.
public addFax ( Fax $fax ) : Account
$fax Sulu\Bundle\ContactBundle\Entity\Fax
Résultat Account

addFaxe() public méthode

Add faxes.
public addFaxe ( Fax $fax ) : Account
$fax Sulu\Bundle\ContactBundle\Entity\Fax
Résultat Account

addMedia() public méthode

Add media.
public addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : Account
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface
Résultat Account

addNote() public méthode

Add notes.
public addNote ( Note $notes ) : Account
$notes Sulu\Bundle\ContactBundle\Entity\Note
Résultat Account

addPhone() public méthode

Add phones.
public addPhone ( Phone $phones ) : Account
$phones Sulu\Bundle\ContactBundle\Entity\Phone
Résultat Account

addTag() public méthode

Add tags.
public addTag ( Tag $tag ) : Account
$tag Sulu\Bundle\TagBundle\Entity\Tag
Résultat Account

addUrl() public méthode

Add urls.
public addUrl ( Url $url ) : Account
$url Sulu\Bundle\ContactBundle\Entity\Url
Résultat Account

getAccountAddresses() public méthode

Get accountAddresses.
public getAccountAddresses ( ) : AccountAddress[]
Résultat Sulu\Bundle\ContactBundle\Entity\AccountAddress[]

getAccountContacts() public méthode

Get accountContacts.
public getAccountContacts ( ) : AccountContact[]
Résultat AccountContact[]

getAddresses() public méthode

returns addresses.
public getAddresses ( )

getBankAccounts() public méthode

Get bankAccounts.
public getBankAccounts ( ) : BankAccount[]
Résultat Sulu\Bundle\ContactBundle\Entity\BankAccount[]

getCategories() public méthode

Get categories.
public getCategories ( ) : Category[]
Résultat Sulu\Bundle\CategoryBundle\Api\Category[]

getChanged() public méthode

Get changed.
public getChanged ( ) : DateTime
Résultat DateTime

getContacts() public méthode

Get contacts.
public getContacts ( ) : Contact[]
Résultat Contact[]

getCorporation() public méthode

Get corporation.
public getCorporation ( ) : string
Résultat string

getCreated() public méthode

Get created.
public getCreated ( ) : DateTime
Résultat DateTime

getDepth() public méthode

Get depth.
public getDepth ( ) : integer
Résultat integer

getEmails() public méthode

Get emails.
public getEmails ( ) : Email[]
Résultat Sulu\Bundle\ContactBundle\Entity\Email[]

getExternalId() public méthode

Get externalId.
public getExternalId ( ) : string
Résultat string

getFaxes() public méthode

Get faxes.
public getFaxes ( ) : Fax[]
Résultat Sulu\Bundle\ContactBundle\Entity\Fax[]

getId() public méthode

Returns the id of the product.
public getId ( ) : integer
Résultat integer

getMainAddress() public méthode

Returns the main address.
public getMainAddress ( ) : mixed
Résultat mixed

getMainContact() public méthode

Get mainContact.
public getMainContact ( ) : Account
Résultat Account

getMainEmail() public méthode

Get mainEmail.
public getMainEmail ( ) : string
Résultat string

getMainFax() public méthode

Get mainFax.
public getMainFax ( ) : string
Résultat string

getMainPhone() public méthode

Get mainPhone.
public getMainPhone ( ) : string
Résultat string

getMainUrl() public méthode

Get mainUrl.
public getMainUrl ( ) : string
Résultat string

getMedias() public méthode

Get medias.
public getMedias ( ) : Media[]
Résultat Sulu\Bundle\MediaBundle\Api\Media[]

getName() public méthode

Get name.
public getName ( ) : string
Résultat string

getNotes() public méthode

Get notes.
public getNotes ( ) : Note[]
Résultat Sulu\Bundle\ContactBundle\Entity\Note[]

getNumber() public méthode

Get number.
public getNumber ( ) : string
Résultat string

getParent() public méthode

Get parent.
public getParent ( ) : Sulu\Bundle\ContactBundle\Entity\AccountInterface
Résultat Sulu\Bundle\ContactBundle\Entity\AccountInterface

getPhones() public méthode

Get phones.
public getPhones ( ) : Phone[]
Résultat Sulu\Bundle\ContactBundle\Entity\Phone[]

getPlaceOfJurisdiction() public méthode

Get placeOfJurisdiction.
public getPlaceOfJurisdiction ( ) : string
Résultat string

getRegisterNumber() public méthode

Get registerNumber.
public getRegisterNumber ( ) : string
Résultat string

getTags() public méthode

Get tags.
public getTags ( ) : Tag[]
Résultat Sulu\Bundle\TagBundle\Entity\Tag[]

getType() public méthode

Get type of api entity.
public getType ( ) : string
Résultat string

getUid() public méthode

Get uid.
public getUid ( ) : string
Résultat string

getUrls() public méthode

Get urls.
public getUrls ( ) : Url[]
Résultat Sulu\Bundle\ContactBundle\Entity\Url[]

removeAccountAddress() public méthode

Remove accountAddresses.
public removeAccountAddress ( AccountAddress $accountAddresses )
$accountAddresses Sulu\Bundle\ContactBundle\Entity\AccountAddress

removeAccountContact() public méthode

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

removeBankAccount() public méthode

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

removeEmail() public méthode

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

removeFax() public méthode

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

removeFaxe() public méthode

Remove faxes.
public removeFaxe ( Fax $fax ) : Account
$fax Sulu\Bundle\ContactBundle\Entity\Fax
Résultat Account

removeMedia() public méthode

Remove medias.
public removeMedia ( MediaInterfae $media )
$media MediaInterfae

removeNote() public méthode

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

removePhone() public méthode

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

removeTag() public méthode

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

removeUrl() public méthode

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

setCorporation() public méthode

Set corporation.
public setCorporation ( string $corporation ) : Account
$corporation string
Résultat Account

setDepth() public méthode

Set depth.
public setDepth ( integer $depth ) : Account
$depth integer
Résultat Account

setExternalId() public méthode

Set externalId.
public setExternalId ( string $externalId ) : Account
$externalId string
Résultat Account

setLft() public méthode

Set lft.
public setLft ( integer $lft ) : Account
$lft integer
Résultat Account

setMainContact() public méthode

Set mainContact.
public setMainContact ( Contact $mainContact = null ) : Account
$mainContact Sulu\Bundle\ContactBundle\Entity\Contact
Résultat Account

setMainEmail() public méthode

Set mainEmail.
public setMainEmail ( string $mainEmail ) : Account
$mainEmail string
Résultat Account

setMainFax() public méthode

Set mainFax.
public setMainFax ( string $mainFax ) : Account
$mainFax string
Résultat Account

setMainPhone() public méthode

Set mainPhone.
public setMainPhone ( string $mainPhone ) : Account
$mainPhone string
Résultat Account

setMainUrl() public méthode

Set mainUrl.
public setMainUrl ( string $mainUrl ) : Account
$mainUrl string
Résultat Account

setName() public méthode

Set name.
public setName ( string $name ) : Account
$name string
Résultat Account

setNumber() public méthode

Set number.
public setNumber ( string $number ) : Account
$number string
Résultat Account

setParent() public méthode

Set parent.
public setParent ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $parent = null ) : Account
$parent Sulu\Bundle\ContactBundle\Entity\AccountInterface
Résultat Account

setPlaceOfJurisdiction() public méthode

Set placeOfJurisdiction.
public setPlaceOfJurisdiction ( string $placeOfJurisdiction ) : Account
$placeOfJurisdiction string
Résultat Account

setRegisterNumber() public méthode

Set registerNumber.
public setRegisterNumber ( string $registerNumber ) : Account
$registerNumber string
Résultat Account

setRgt() public méthode

Set rgt.
public setRgt ( integer $rgt ) : Account
$rgt integer
Résultat Account

setUid() public méthode

Set uid.
public setUid ( string $uid ) : Account
$uid string
Résultat Account