PHP Класс Sonata\CustomerBundle\Controller\CustomerController

Автор: Hugo Briand ([email protected])
Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
addAddressAction ( ) : Response Adds an address to current customer.
addressesAction ( ) : Response Lists customer's addresses.
deleteAddressAction ( $id ) : RedirectResponse Deletes address $id.
editAddressAction ( $id ) : RedirectResponse | Response Controller action to edit address $id.
setCurrentAddressAction ( $id ) : RedirectResponse Sets address $id to current.

Защищенные методы

Метод Описание
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 ) : RedirectResponse | Response Updates or create an address.

Описание методов

addAddressAction() публичный Метод

Adds an address to current customer.
public addAddressAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

addressesAction() публичный Метод

Lists customer's addresses.
public addressesAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

checkAddress() защищенный Метод

Checks if $address is valid.
protected checkAddress ( Sonata\Component\Customer\AddressInterface $address = null )
$address Sonata\Component\Customer\AddressInterface

deleteAddressAction() публичный Метод

Deletes address $id.
public deleteAddressAction ( $id ) : RedirectResponse
$id The address to delete
Результат Symfony\Component\HttpFoundation\RedirectResponse

editAddressAction() публичный Метод

Controller action to edit address $id.
public editAddressAction ( $id ) : RedirectResponse | Response
$id
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

getAddressManager() защищенный Метод

protected getAddressManager ( ) : Sonata\Component\Customer\AddressManagerInterface
Результат Sonata\Component\Customer\AddressManagerInterface

getCustomer() защищенный Метод

protected getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
Результат Sonata\Component\Customer\CustomerInterface

getCustomerManager() защищенный Метод

protected getCustomerManager ( ) : Sonata\Component\Customer\CustomerManagerInterface
Результат Sonata\Component\Customer\CustomerManagerInterface

setCurrentAddressAction() публичный Метод

Sets address $id to current.
public setCurrentAddressAction ( $id ) : RedirectResponse
$id
Результат Symfony\Component\HttpFoundation\RedirectResponse

updateAddress() защищенный Метод

Updates or create an address.
protected updateAddress ( integer $id = null ) : RedirectResponse | Response
$id integer Address id
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response