Property | Type | Description | |
---|---|---|---|
$accountAddressEntityName | |||
$accountAddressesFieldDescriptors | |||
$accountContactEntityName | |||
$accountContactFieldDescriptors | |||
$accountManager | |||
$accountSerializationGroups | |||
$addressEntityName | |||
$bundlePrefix | |||
$contactEntityKey | |||
$countryEntityName | |||
$entityKey | |||
$fieldDescriptors | |||
$locale | |||
$positionEntityName |
Method | Description | |
---|---|---|
cgetAction ( |
Lists all accounts. | |
deleteAction ( $id, |
Delete an account with the given id. | |
deleteContactsAction ( integer $accountId, integer $contactId ) : |
Deleted account contact. | |
fieldsAction ( ) : mixed | Returns all fields that can be used by list. | |
getAction ( integer $id, |
Shows a single account with the given id. | |
getAddressesAction ( integer $id, |
Lists all addresses of an account optional parameter 'flat' calls listAction. | |
getContactsAction ( integer $id, |
Lists all contacts of an account. | |
getDeleteinfoAction ( $id ) : |
Returns information about data which will be also deleted: 3 contacts, total number of contacts, and if deleting is allowed (as 0 or 1). | |
getSecurityContext ( ) | ||
multipledeleteinfoAction ( |
Returns delete info for multiple ids. | |
patchAction ( $id, |
Partial update of account infos. | |
postAction ( |
Creates a new account. | |
putAction ( integer $id, |
Edits the existing contact with the given id. | |
putContactsAction ( integer $accountId, $contactId, |
Method | Description | |
---|---|---|
applyRequestParameters ( |
Applies the filter parameter and hasNoparent parameter for listbuilder. | |
doPatch ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, |
Process geiven entity for patch. | |
doPost ( |
Maps data from request to a new account. | |
doPut ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, |
processes given entity for put. | |
generateFlatListBuilder ( ) : |
Creates a listbuilder instance. | |
getAccountAddressesFieldDescriptors ( ) : null | array | ||
getAccountContactFieldDescriptors ( ) : null | array | ||
getAccountEntityName ( ) : string | ||
getAccountManager ( ) : AbstractContactManager | ||
getFieldDescriptorForNoParent ( ) : |
Returns fielddescriptor used for checking if account has no parent Will result in an error when added to the array of fielddescriptors because its just for checking if parent exists or not and does not point to a property of the parent. | |
getFieldDescriptors ( ) | ||
getRestHelper ( ) : Sulu\Component\Rest\RestHelperInterface | ||
initAccountAddressesFieldDescriptors ( ) | Inits the account contact descriptors. | |
initAccountContactFieldDescriptors ( ) | Inits the account contact descriptors. | |
initFieldDescriptors ( ) | Initializes the field descriptors. |
Method | Description | |
---|---|---|
addLogos ( array $accounts, string $locale ) : array | Takes an array of accounts and resets the logo-property containing the media id with the actual urls to the logo thumbnails. | |
retrieveFilter ( |
Retrieves the ids from the request. | |
setParent ( array $parentData, Sulu\Bundle\ContactBundle\Entity\AccountInterface $account ) | Set parent to account. |
protected applyRequestParameters ( |
||
$request | ||
$filter | array | |
$listBuilder |
public cgetAction ( |
||
$request | ||
return |
public deleteAction ( $id, |
||
$id | ||
$request | ||
return |
public deleteContactsAction ( integer $accountId, integer $contactId ) : |
||
$accountId | integer | |
$contactId | integer | |
return |
protected doPatch ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, |
||
$account | Sulu\Bundle\ContactBundle\Entity\AccountInterface | |
$request | ||
$entityManager | Doctrine\Common\Persistence\ObjectManager |
protected doPost ( |
||
$request | ||
return | Sulu\Bundle\ContactBundle\Entity\AccountInterface |
protected doPut ( Sulu\Bundle\ContactBundle\Entity\AccountInterface $account, |
||
$account | Sulu\Bundle\ContactBundle\Entity\AccountInterface | |
$request |
public fieldsAction ( ) : mixed | ||
return | mixed |
protected generateFlatListBuilder ( ) : |
||
return |
protected getAccountAddressesFieldDescriptors ( ) : null | array | ||
return | null | array |
protected getAccountContactFieldDescriptors ( ) : null | array | ||
return | null | array |
protected getAccountManager ( ) : AbstractContactManager | ||
return | AbstractContactManager |
public getAddressesAction ( integer $id, |
||
$id | integer | |
$request | ||
return |
public getContactsAction ( integer $id, |
||
$id | integer | |
$request | ||
return |
public getDeleteinfoAction ( $id ) : |
||
$id | ||
return |
protected getFieldDescriptorForNoParent ( ) : |
||
return |
protected getRestHelper ( ) : Sulu\Component\Rest\RestHelperInterface | ||
return | Sulu\Component\Rest\RestHelperInterface |
protected initAccountAddressesFieldDescriptors ( ) |
protected initAccountContactFieldDescriptors ( ) |
protected initFieldDescriptors ( ) |
public multipledeleteinfoAction ( |
||
$request | ||
return |
public patchAction ( $id, |
||
$id | ||
$request | ||
return |
public postAction ( |
||
$request | ||
return |
public putContactsAction ( integer $accountId, $contactId, |
||
$accountId | integer | |
$request | ||
return |
protected AccountManager,Sulu\Bundle\ContactBundle\Contact $accountManager | ||
return |
protected DoctrineFieldDescriptor[],Sulu\Component\Rest\ListBuilder\Doctrine\FieldDescriptor $fieldDescriptors | ||
return |