| West Wind Web Store |
Class cCustomer
|
The customer business object. This class manages the customer or User Profile for users of the store. The underlying table is wws_customers.
Parent Class: wwbusiness
| Member | Description |
|---|---|
findbyuserid | Finds and loads a user based on his user ID. o.findbyuserid(lcUserId) |
getcountries | Returns countries and country codes as a cursor. Code and Name are the fields returned. o.getcountries() |
loadbyname | Loads a customer by name. o.loadbyname(lcLast, lcFirst) |
UpdateSource | Adds a source value into the Source field. Sources are used for tracking users and where they came from. For example, West Wind writes a source key for every contest that's run. o.UpdateSource(lcSource,llRemove) |
validate | Check property values for completeness and return .T. or .F. based on the values. cErrorMsg contains any errors in a CHR(13) separated list. o.validate() |