Mage_SalesRule_Model_Rule_Action_Product Class Reference

Inheritance diagram for Mage_SalesRule_Model_Rule_Action_Product:

Mage_Rule_Model_Action_Abstract Varien_Object Mage_Rule_Model_Action_Interface

List of all members.

Public Member Functions

 loadAttributeOptions ()
 loadOperatorOptions ()
 asHtml ()


Detailed Description

Definition at line 28 of file Product.php.


Member Function Documentation

asHtml (  ) 

Reimplemented from Mage_Rule_Model_Action_Abstract.

Definition at line 49 of file Product.php.

00050     {
00051         $html = $this->getTypeElement()->getHtml().Mage::helper('salesrule')->__("Update product's %s %s: %s", $this->getAttributeElement()->getHtml(), $this->getOperatorElement()->getHtml(), $this->getValueElement()->getHtml());
00052         $html.= $this->getRemoveLinkHtml();
00053         return $html;
00054     }

loadAttributeOptions (  ) 

Reimplemented from Mage_Rule_Model_Action_Abstract.

Definition at line 30 of file Product.php.

00031     {
00032         $this->setAttributeOption(array(
00033             'rule_price'=>Mage::helper('salesrule')->__('Special price'),
00034         ));
00035         return $this;
00036     }

loadOperatorOptions (  ) 

Reimplemented from Mage_Rule_Model_Action_Abstract.

Definition at line 38 of file Product.php.

00039     {
00040         $this->setOperatorOption(array(
00041             'to_fixed'=>Mage::helper('salesrule')->__('To Fixed Value'),
00042             'to_percent'=>Mage::helper('salesrule')->__('To Percentage'),
00043             'by_fixed'=>Mage::helper('salesrule')->__('By Fixed value'),
00044             'by_percent'=>Mage::helper('salesrule')->__('By Percentage'),
00045         ));
00046         return $this;
00047     }


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

Generated on Sat Jul 4 17:24:50 2009 for Magento by  doxygen 1.5.8