Méthode | Description | |
---|---|---|
addAddressAction ( ) : |
Adds an address to current customer. | |
addressesAction ( ) : |
Lists customer's addresses. | |
deleteAddressAction ( $id ) : |
Deletes address $id. | |
editAddressAction ( $id ) : |
Controller action to edit address $id. | |
setCurrentAddressAction ( $id ) : |
Sets address $id to current. |
Méthode | Description | |
---|---|---|
checkAddress ( Sonata\Component\Customer\AddressInterface $address = null ) | Checks if $address is valid. | |
getAddressManager ( ) : Sonata\Component\Customer\AddressManagerInterface | ||
getCustomer ( ) : Sonata\Component\Customer\CustomerInterface | ||
getCustomerManager ( ) : Sonata\Component\Customer\CustomerManagerInterface | ||
updateAddress ( integer $id = null ) : |
Updates or create an address. |
public addAddressAction ( ) : |
||
Résultat |
public addressesAction ( ) : |
||
Résultat |
protected checkAddress ( Sonata\Component\Customer\AddressInterface $address = null ) | ||
$address | Sonata\Component\Customer\AddressInterface |
public deleteAddressAction ( $id ) : |
||
$id | The address to delete | |
Résultat |
public editAddressAction ( $id ) : |
||
$id | ||
Résultat |
protected getAddressManager ( ) : Sonata\Component\Customer\AddressManagerInterface | ||
Résultat | Sonata\Component\Customer\AddressManagerInterface |
protected getCustomer ( ) : Sonata\Component\Customer\CustomerInterface | ||
Résultat | Sonata\Component\Customer\CustomerInterface |
protected getCustomerManager ( ) : Sonata\Component\Customer\CustomerManagerInterface | ||
Résultat | Sonata\Component\Customer\CustomerManagerInterface |
public setCurrentAddressAction ( $id ) : |
||
$id | ||
Résultat |
protected updateAddress ( integer $id = null ) : |
||
$id | integer | Address id |
Résultat |