Pricealarm Class Reference

Inheritance diagram for Pricealarm:

Inheritance graph
[legend]
Collaboration diagram for Pricealarm:

Collaboration graph
[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 117 of file pricealarm.php.

Pricealarm.getProduct (  ) 

Template variable getter. Returns active article

Returns:
object

Reimplemented from oxUBase.

Definition at line 135 of file pricealarm.php.

Pricealarm._getParams (  )  [private]

Returns params (article id, bid price)

Returns:
array

Definition at line 152 of file pricealarm.php.

Pricealarm.getPriceAlarmStatus (  ) 

Return pricealarm status (if it was send)

Returns:
integer

Definition at line 162 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 Wed Apr 22 12:33:48 2009 for OXID eShop CE by  doxygen 1.5.5