PHP Class Sulu\Bundle\ContactBundle\Api\Account

Inheritance: extends Sulu\Component\Rest\ApiWrapper
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method 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 method

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 method

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

addAccountContact() public method

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

addBankAccount() public method

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

addEmail() public method

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

addFax() public method

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

addFaxe() public method

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

addMedia() public method

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

addNote() public method

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

addPhone() public method

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

addTag() public method

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

addUrl() public method

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

getAccountAddresses() public method

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

getAccountContacts() public method

Get accountContacts.
public getAccountContacts ( ) : AccountContact[]
return AccountContact[]

getAddresses() public method

returns addresses.
public getAddresses ( )

getBankAccounts() public method

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

getCategories() public method

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

getChanged() public method

Get changed.
public getChanged ( ) : DateTime
return DateTime

getContacts() public method

Get contacts.
public getContacts ( ) : Contact[]
return Contact[]

getCorporation() public method

Get corporation.
public getCorporation ( ) : string
return string

getCreated() public method

Get created.
public getCreated ( ) : DateTime
return DateTime

getDepth() public method

Get depth.
public getDepth ( ) : integer
return integer

getEmails() public method

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

getExternalId() public method

Get externalId.
public getExternalId ( ) : string
return string

getFaxes() public method

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

getId() public method

Returns the id of the product.
public getId ( ) : integer
return integer

getMainAddress() public method

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

getMainContact() public method

Get mainContact.
public getMainContact ( ) : Account
return Account

getMainEmail() public method

Get mainEmail.
public getMainEmail ( ) : string
return string

getMainFax() public method

Get mainFax.
public getMainFax ( ) : string
return string

getMainPhone() public method

Get mainPhone.
public getMainPhone ( ) : string
return string

getMainUrl() public method

Get mainUrl.
public getMainUrl ( ) : string
return string

getMedias() public method

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

getName() public method

Get name.
public getName ( ) : string
return string

getNotes() public method

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

getNumber() public method

Get number.
public getNumber ( ) : string
return string

getParent() public method

Get parent.
public getParent ( ) : Sulu\Bundle\ContactBundle\Entity\AccountInterface
return Sulu\Bundle\ContactBundle\Entity\AccountInterface

getPhones() public method

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

getPlaceOfJurisdiction() public method

Get placeOfJurisdiction.
public getPlaceOfJurisdiction ( ) : string
return string

getRegisterNumber() public method

Get registerNumber.
public getRegisterNumber ( ) : string
return string

getTags() public method

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

getType() public method

Get type of api entity.
public getType ( ) : string
return string

getUid() public method

Get uid.
public getUid ( ) : string
return string

getUrls() public method

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

removeAccountAddress() public method

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

removeAccountContact() public method

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

removeBankAccount() public method

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

removeEmail() public method

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

removeFax() public method

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

removeFaxe() public method

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

removeMedia() public method

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

removeNote() public method

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

removePhone() public method

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

removeTag() public method

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

removeUrl() public method

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

setCorporation() public method

Set corporation.
public setCorporation ( string $corporation ) : Account
$corporation string
return Account

setDepth() public method

Set depth.
public setDepth ( integer $depth ) : Account
$depth integer
return Account

setExternalId() public method

Set externalId.
public setExternalId ( string $externalId ) : Account
$externalId string
return Account

setLft() public method

Set lft.
public setLft ( integer $lft ) : Account
$lft integer
return Account

setMainContact() public method

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

setMainEmail() public method

Set mainEmail.
public setMainEmail ( string $mainEmail ) : Account
$mainEmail string
return Account

setMainFax() public method

Set mainFax.
public setMainFax ( string $mainFax ) : Account
$mainFax string
return Account

setMainPhone() public method

Set mainPhone.
public setMainPhone ( string $mainPhone ) : Account
$mainPhone string
return Account

setMainUrl() public method

Set mainUrl.
public setMainUrl ( string $mainUrl ) : Account
$mainUrl string
return Account

setName() public method

Set name.
public setName ( string $name ) : Account
$name string
return Account

setNumber() public method

Set number.
public setNumber ( string $number ) : Account
$number string
return Account

setParent() public method

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

setPlaceOfJurisdiction() public method

Set placeOfJurisdiction.
public setPlaceOfJurisdiction ( string $placeOfJurisdiction ) : Account
$placeOfJurisdiction string
return Account

setRegisterNumber() public method

Set registerNumber.
public setRegisterNumber ( string $registerNumber ) : Account
$registerNumber string
return Account

setRgt() public method

Set rgt.
public setRgt ( integer $rgt ) : Account
$rgt integer
return Account

setUid() public method

Set uid.
public setUid ( string $uid ) : Account
$uid string
return Account