PHP Class AccountPage_Controller, silvershop-core

Inheritance: extends Page_Controller
Mostrar archivo Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

Property Type Description
$member Member | ShopMember

Public Methods

Method Description
ChangePasswordForm ( )
CreateAddressForm ( )
DefaultAddressForm ( )
EditAccountForm ( ) : ShopAccountForm Return a form allowing the user to edit their details.
addressbook ( )
changepassword ( ) By default, ChangePasswordForm redirects to /account/changepassword when it's done.
deleteaddress ( SS_HTTPRequest $req ) : SS_HTTPResponse
editprofile ( )
getMember ( )
getTitle ( )
init ( )
saveaddress ( $data, $form )
savedefaultaddresses ( $data, $form )
setdefaultbilling ( SS_HTTPRequest $req ) : SS_HTTPResponse
setdefaultshipping ( SS_HTTPRequest $req ) : SS_HTTPResponse

Method Details

ChangePasswordForm() public method

public ChangePasswordForm ( )

CreateAddressForm() public method

public CreateAddressForm ( )

DefaultAddressForm() public method

public DefaultAddressForm ( )

EditAccountForm() public method

Return a form allowing the user to edit their details.
public EditAccountForm ( ) : ShopAccountForm
return ShopAccountForm

addressbook() public method

public addressbook ( )

changepassword() public method

This catches that and sends it back to editprofile, which seems easier and less error-prone than the alternative of trying to manipulate the BackURL field.
public changepassword ( )

deleteaddress() public method

public deleteaddress ( SS_HTTPRequest $req ) : SS_HTTPResponse
$req SS_HTTPRequest
return SS_HTTPResponse

editprofile() public method

public editprofile ( )

getMember() public method

public getMember ( )

getTitle() public method

public getTitle ( )

init() public method

public init ( )

saveaddress() public method

public saveaddress ( $data, $form )

savedefaultaddresses() public method

public savedefaultaddresses ( $data, $form )

setdefaultbilling() public method

public setdefaultbilling ( SS_HTTPRequest $req ) : SS_HTTPResponse
$req SS_HTTPRequest
return SS_HTTPResponse

setdefaultshipping() public method

public setdefaultshipping ( SS_HTTPRequest $req ) : SS_HTTPResponse
$req SS_HTTPRequest
return SS_HTTPResponse

Property Details

$member protected_oe property

protected Member|ShopMember $member
return Member | ShopMember