Pricealarm Class Reference

Inheritance diagram for Pricealarm:
[legend]
Collaboration diagram for Pricealarm:
[legend]

List of all members.


Detailed Description

Pricealarm window. Arranges "pricealarm" window, by sending eMail and storing into Database (etc.) submission. Result - "pricealarm.tpl" template. After user correctly fulfils all required fields all information is sent to shop owner by email. OXID eShop -> pricealarm.

Definition at line 11 of file pricealarm.php.


Public Member Functions

 render ()
 addme ()
 getBidPrice ()
 getProduct ()
 getPriceAlarmStatus ()

Protected Attributes

 $_sThisTemplate = 'pricealarm.tpl'
 $_oArticle = null
 $_sBidPrice = null
 $_iPriceAlarmStatus = null

Private Member Functions

 _getParams ()

Member Function Documentation

Pricealarm.render (  ) 

Executes parent.render(), loads pricealarm article, currency. Returns name of template to render Pricealarm._sThisTemplate.

Template variables: product, bidprice

Returns:
string current view template file name

Reimplemented from oxUBase.

Definition at line 46 of file pricealarm.php.

Pricealarm.addme (  ) 

Validates email address. If email is wrong - returns false and exits. If email address is OK - creates prcealarm object and saves it (oxpricealarm.save()). Sends pricealarm notification mail to shop owner.

Template variables: success, shop

Returns:
bool false on error

Definition at line 69 of file pricealarm.php.

Pricealarm.getBidPrice (  ) 

Template variable getter. Returns bid price

Returns:
string

Definition at line 116 of file pricealarm.php.

Pricealarm.getProduct (  ) 

Template variable getter. Returns active article

Returns:
object

Reimplemented from oxUBase.

Definition at line 134 of file pricealarm.php.

Pricealarm._getParams (  )  [private]

Returns params (article id, bid price)

Returns:
array

Definition at line 151 of file pricealarm.php.

Pricealarm.getPriceAlarmStatus (  ) 

Return pricealarm status (if it was send)

Returns:
integer

Definition at line 161 of file pricealarm.php.


Member Data Documentation

Pricealarm.$_sThisTemplate = 'pricealarm.tpl' [protected]

Reimplemented from oxView.

Definition at line 17 of file pricealarm.php.

Pricealarm.$_oArticle = null [protected]

Definition at line 23 of file pricealarm.php.

Pricealarm.$_sBidPrice = null [protected]

Definition at line 29 of file pricealarm.php.

Pricealarm.$_iPriceAlarmStatus = null [protected]

Definition at line 35 of file pricealarm.php.


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

Generated on Thu Dec 4 12:05:39 2008 for OXID eShop CE by  doxygen 1.5.5