PHP Class ShopMember, silvershop-core

Inheritance: extends DataExtension
Show file Open project: burnbright/silverstripe-shop Class Usage Examples

Public Methods

Method Description
getPastOrders ( ) : DataList Get the past orders for this member
get_by_identifier ( $idvalue ) : Member | null Get member by unique field.
memberLoggedIn ( ) Link the current order to the current member on login, if there is one, and if configuration is set to do so.
memberLoggedOut ( ) Clear the cart, and session variables on member logout
updateCMSFields ( FieldList $fields )
updateMemberFormFields ( $fields )

Method Details

getPastOrders() public method

Get the past orders for this member
public getPastOrders ( ) : DataList
return DataList list of orders

get_by_identifier() public static method

Get member by unique field.
public static get_by_identifier ( $idvalue ) : Member | null
return Member | null

memberLoggedIn() public method

Link the current order to the current member on login, if there is one, and if configuration is set to do so.
public memberLoggedIn ( )

memberLoggedOut() public method

Clear the cart, and session variables on member logout
public memberLoggedOut ( )

updateCMSFields() public method

public updateCMSFields ( FieldList $fields )
$fields FieldList

updateMemberFormFields() public method

public updateMemberFormFields ( $fields )