ZMObject
|
+--ZMAccount
public class ZMAccount
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| string | Get authorization. |
| int | Get the default address id (primary address). |
| string | getDob() Get the date of birth. |
| string | getEmail() Get the email address. |
| string | Get the preferred email format. |
| string | getFax() Get the fax number. |
| string | Get the first name. |
| string | Get the formatted full name. |
| string | Get the gender. |
| int | getId() Get the account id. |
| string | Get the last name. |
| string | Get the nick name. |
| string | Get the password. |
| string | getPhone() Get the phone number. |
| ZMPriceGroup | Get a price group. |
| int | Get the price group id. |
| string | Get the referral. |
| array | Get the subscribed product ids. |
| char | getType() Get the account type. |
| float | Get the voucher balance. |
| boolean | Checks if the user has product subscriptions. |
| boolean | Check if email notification is disabled. |
| boolean | Checks if the user is a global product subscriber. |
| boolean | Check if the account is set up to receive HTML formatted emails. |
| boolean | Returns true if the account has subscribed to newsletter. |
| void | setAuthorization(string authorization) Set authorization. |
| void | setDefaultAddressId(int addressId) Set the default address id (primary address). |
| void | setDob(string dob) Set the date of birth. |
| void | setEmail(mixed email) Set the email address. |
| void | setEmailFormat(string emailFormat) Set the preferred email format. |
| void | setFax(string fax) Set the fax number. |
| void | setFirstName(string firstName) Set the first name. |
| void | setGender(string gender) Set the gender. |
| void | setGlobalProductSubscriber(boolean globalProductSubscriber) Set the global product subscriber status. |
| void | setId(int id) Set the account id. |
| void | setLastName(string lastName) Set the last name. |
| void | setNewsletterSubscriber(boolean newsletterSubscriber) Set the newsletter subscription status. |
| void | setNickName(string nickName) Set the nick name. |
| void | setPassword(string password) Set the password. |
| void | setPhone(string phone) Set the phone number. |
| void | setPriceGroupId(int priceGroupId) Set the price group id. |
| void | setReferral(string referral) Set the referral. |
| void | setSubscribedProducts(array products) Set the subscribed product ids. |
| void | setType(char type) Set the account type. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMAccount()
Create new instance. /
public string getAuthorization()
Get authorization.
public int getDefaultAddressId()
Get the default address id (primary address).
public string getDob()
Get the date of birth.
public string getEmail()
Get the email address.
public string getEmailFormat()
Get the preferred email format.
public string getFax()
Get the fax number.
public string getFirstName()
Get the first name.
public string getFullName()
Get the formatted full name.
public string getGender()
Get the gender.
public int getId()
Get the account id.
public string getLastName()
Get the last name.
public string getNickName()
Get the nick name.
public string getPassword()
Get the password.
public string getPhone()
Get the phone number.
public ZMPriceGroup getPriceGroup()
Get a price group.
null.public int getPriceGroupId()
Get the price group id.
public string getReferral()
Get the referral.
public array getSubscribedProducts()
Get the subscribed product ids.
public char getType()
Get the account type.
public float getVoucherBalance()
Get the voucher balance.
public boolean hasProductSubscriptions()
Checks if the user has product subscriptions.
true if the user has product subscriptions, false if not.public boolean isEmailDisabled()
Check if email notification is disabled.
true if email notification is disabled, false if not.public boolean isGlobalProductSubscriber()
Checks if the user is a global product subscriber.
true if the user is subscribed, false if not.public boolean isHtmlEmail()
Check if the account is set up to receive HTML formatted emails.
true if HTML is selected as email format, false if not.public boolean isNewsletterSubscriber()
Returns true if the account has subscribed to newsletter.
true if newsletter subsricption ias active, false if not.public void setAuthorization(string authorization)
Set authorization.
public void setDefaultAddressId(int addressId)
Set the default address id (primary address).
public void setDob(string dob)
Set the date of birth.
public void setEmail(mixed email)
Set the email address.
public void setEmailFormat(string emailFormat)
Set the preferred email format.
public void setFax(string fax)
Set the fax number.
public void setFirstName(string firstName)
Set the first name.
public void setGender(string gender)
Set the gender.
public void setGlobalProductSubscriber(boolean globalProductSubscriber)
Set the global product subscriber status.
true if global product is selected, false if not.public void setId(int id)
Set the account id.
public void setLastName(string lastName)
Set the last name.
public void setNewsletterSubscriber(boolean newsletterSubscriber)
Set the newsletter subscription status.
true if newsletter subsricption is selected, false if not.public void setNickName(string nickName)
Set the nick name.
public void setPassword(string password)
Set the password.
public void setPhone(string phone)
Set the phone number.
public void setPriceGroupId(int priceGroupId)
Set the price group id.
public void setReferral(string referral)
Set the referral.
public void setSubscribedProducts(array products)
Set the subscribed product ids.
public void setType(char type)
Set the account type.
A single user account.