MagicSmoke  $VERSION$
WOCustomer Class Reference
Inheritance diagram for WOCustomer:
WOCustomerAbstract WObject

Static Public Member Functions

static changeCustomer ($trans)
 called from ChangeCustomer transaction More...
 
static changeCustomerMail ($trans)
 called from ChangeCustomerMail transaction More...
 
static checkLogin ($next, $storeincart)
 check the login of the customer, either forwards to the checkout page or shows the loginerror page More...
 
static createContactType ($trans)
 called from CreateContactType transaction More...
 
static createCountry ($trans)
 called from CreateCountry transaction More...
 
static createCustomer ($trans)
 called from CreateCustomer transaction More...
 
static createHints ($trans)
 callback for the GetCreateCustomerHints transaction More...
 
static deleteCustomer ($trans)
 called from DeleteCustomer transaction More...
 
static loginPage ($extension)
 creates a login page More...
 
static registerCustomer ()
 attempts to register a customer: if ok it creates a new customer object and redirects to the createaddress page, otherwise it shows the loginerror page More...
 
static resetLoginPage ()
 page shown to the customer after clicking the password reset link above More...
 
static resetPassword ($trans)
 the ResetCustomerPassword transaction More...
 
static sendMail ($trans)
 callback for the SendCustomerMail transaction More...
 
- Static Public Member Functions inherited from WOCustomerAbstract
static fromString ($txt)
 
static fromTableArraycustomer (array $table)
 
static fromTablecustomer ($table)
 
static fromXml ($xml, $elem)
 
static validateaddresses ($value)
 
static validatecflags ($value)
 
static validatecomments ($value)
 
static validatecontacts ($value)
 
static validateemail ($value)
 
static validatefirstname ($value)
 
static validateid ($value)
 
static validatename ($value)
 
static validatetags ($value)
 
static validatetitle ($value)
 
- Static Public Member Functions inherited from WObject
static elementsByTagName ($root, $tag)
 helper function that returns only the elements directly beneith the one given as $root More...
 
static fromXmlBoolean ($str)
 helper function for XML'ized objects that transforms XML boolean to PHP boolean More...
 
static isXmlBoolean ($str)
 helper function for XML'ized objects: it returns whether the string is a valid boolean More...
 

Additional Inherited Members

- Public Member Functions inherited from WOCustomerAbstract
 __construct ()
 
 add_addresses ($value)
 
 add_contacts ($value)
 
 clear_addresses ()
 
 clear_contacts ()
 
 getaddresses ()
 
 getcflags ()
 
 getcomments ()
 
 getcontacts ()
 
 getemail ()
 
 getfirstname ()
 
 getid ()
 
 getname ()
 
 getstr_cflags ()
 
 getstr_comments ()
 
 getstr_email ()
 
 getstr_firstname ()
 
 getstr_id ()
 
 getstr_name ()
 
 getstr_tags ()
 
 getstr_title ()
 
 gettags ()
 
 gettitle ()
 
 propertyArray ()
 
 setaddresses (array $values)
 
 setcflags ($value)
 
 setcomments ($value)
 
 setcontacts (array $values)
 
 setemail ($value)
 
 setfirstname ($value)
 
 setid ($value)
 
 setname ($value)
 
 settags ($value)
 
 settitle ($value)
 
 toString ()
 
 toTablecustomer (&$table)
 
 toXml ($xml, $elementname="Customer")
 
- Public Member Functions inherited from WObject
 propertyArray ()
 base for property array More...
 
- Protected Member Functions inherited from WOCustomerAbstract
 toXmlHelper ($xml, $root)
 
- Protected Member Functions inherited from WObject
 __construct ()
 
 toXmlHelper ($xml, $root)
 base for serialization More...
 
- Static Protected Member Functions inherited from WOCustomerAbstract
static fromXmlHelper ($data, $xml, $elem)
 
- Static Protected Member Functions inherited from WObject
static fromXmlHelper ($data, $xml, $elem)
 base for deserialization More...
 
static objectToArray ($obj)
 helper function for classy objects that calls getPropertyArray if available More...
 
- Protected Attributes inherited from WOCustomerAbstract
 $prop_addresses
 
 $prop_cflags =null
 
 $prop_comments =null
 
 $prop_contacts
 
 $prop_email =null
 
 $prop_firstname =null
 
 $prop_id =null
 
 $prop_name =null
 
 $prop_tags =null
 
 $prop_title =null
 

Member Function Documentation

static WOCustomer::changeCustomer (   $trans)
static
static WOCustomer::changeCustomerMail (   $trans)
static

called from ChangeCustomerMail transaction

References $db, WOCustomerAbstract\fromTablecustomer(), WTcustomer\getFromDB(), and tr().

Referenced by WTrChangeCustomerMail\handleRequest().

static WOCustomer::checkLogin (   $next,
  $storeincart 
)
static

check the login of the customer, either forwards to the checkout page or shows the loginerror page

References $basevars, $db, $HTTPARGS, WebCart\getCart(), WTwebsession\getFromDB(), WTcart\getFromDB(), WOWebSession\getOrCreateWebSession(), Session\passwdVerify(), redirectHome(), WTaddress\selectFromDB(), and WTcustomer\selectFromDB().

static WOCustomer::createContactType (   $trans)
static

called from CreateContactType transaction

References $db, WOContactType\fromTablecontacttype(), WTcontacttype\newRow(), and tr().

Referenced by WTrCreateContactType\handleRequest().

static WOCustomer::createCountry (   $trans)
static

called from CreateCountry transaction

References $db, WOCountry\fromTablecountry(), WTcountry\newRow(), and tr().

Referenced by WTrCreateCountry\handleRequest().

static WOCustomer::createCustomer (   $trans)
static
static WOCustomer::createHints (   $trans)
static
static WOCustomer::deleteCustomer (   $trans)
static
static WOCustomer::loginPage (   $extension)
static
static WOCustomer::registerCustomer ( )
static

attempts to register a customer: if ok it creates a new customer object and redirects to the createaddress page, otherwise it shows the loginerror page

References $basevars, $db, $HTTPARGS, WebCart\getCart(), WTcart\getFromDB(), WTwebsession\getFromDB(), WOWebSession\getOrCreateWebSession(), isEmail(), WTaddress\newRow(), WTcustomer\newRow(), Session\passwdHash(), redirectHome(), WTcustomer\selectFromDB(), and WTaddress\selectFromDB().

static WOCustomer::resetLoginPage ( )
static

page shown to the customer after clicking the password reset link above

References $basevars, $db, $HTTPARGS, WOCustomerAbstract\fromTablecustomer(), Session\passwdHash(), WTcustomer\selectFromDB(), and tr().

static WOCustomer::resetPassword (   $trans)
static
static WOCustomer::sendMail (   $trans)
static

callback for the SendCustomerMail transaction

References $mode, $page, WTcustomer\getFromDB(), and isEmail().

Referenced by WTrSendCustomerMail\handleRequest().


The documentation for this class was generated from the following file: