Public Member Functions | Protected Attributes

Account_Newsletter Class Reference

Inheritance diagram for Account_Newsletter:
Collaboration diagram for Account_Newsletter:

List of all members.

Public Member Functions

 render ()
 isNewsletter ()
 subscribe ()
 getSubscriptionStatus ()
 getBreadCrumb ()

Protected Attributes

 $_sThisTemplate = 'page/account/newsletter.tpl'
 $_blNewsletter = null
 $_iSubscriptionStatus = 0

Detailed Description

Current user newsletter manager. When user is logged in in this manager window he can modify his newletter subscription status - simply register or unregister from newsletter. OXID eShop -> MY ACCOUNT -> Newsletter.

Definition at line 9 of file account_newsletter.php.


Member Function Documentation

Account_Newsletter.getBreadCrumb (  ) 

Returns Bread Crumb - you are here page1/page2/page3...

Returns:
array

Reimplemented from Account.

Definition at line 110 of file account_newsletter.php.

Account_Newsletter.getSubscriptionStatus (  ) 

Template variable getter. Returns 1 when newsletter had been changed to "yes" else return -1 if had been changed to "no".

Returns:
integer

Definition at line 100 of file account_newsletter.php.

Account_Newsletter.isNewsletter (  ) 

Template variable getter. Returns 0 when newsletter had been changed.

Returns:
int

Definition at line 60 of file account_newsletter.php.

Account_Newsletter.render (  ) 

If user is not logged in - returns name of template account_newsletter._sThisLoginTemplate, or if user is allready logged in - returns name of template Account_Newsletter._sThisTemplate

Returns:
string

Reimplemented from Account.

Definition at line 40 of file account_newsletter.php.

Account_Newsletter.subscribe (  ) 

Removes or adds user to newsletter group according to current subscription status. Returns true on success.

Returns:
bool

Definition at line 76 of file account_newsletter.php.


Member Data Documentation

Account_Newsletter.$_blNewsletter = null [protected]

Definition at line 24 of file account_newsletter.php.

Account_Newsletter.$_iSubscriptionStatus = 0 [protected]

Definition at line 31 of file account_newsletter.php.

Account_Newsletter.$_sThisTemplate = 'page/account/newsletter.tpl' [protected]

Reimplemented from Account.

Definition at line 17 of file account_newsletter.php.


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