
Public Member Functions | |
| __construct () | |
| getSaveUrl () | |
| getEditUrl () | |
| getButtonUrl () | |
| getRemoveUrl () | |
| getMessage () | |
| getEscaped ($value) | |
| getEscapedForJs ($value) | |
| getUniqueId () | |
Protected Member Functions | |
| _initMessage () | |
Protected Attributes | |
| $_giftMessage = null | |
Definition at line 35 of file Form.php.
| __construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Varien_Object.
Definition at line 40 of file Form.php.
00041 { 00042 parent::__construct(); 00043 $this->setTemplate('giftmessage/form.phtml'); 00044 }
| _initMessage | ( | ) | [protected] |
Definition at line 81 of file Form.php.
00082 { 00083 $this->_giftMessage = $this->helper('giftmessage/message')->getGiftMessage( 00084 $this->getRequest()->getParam('message') 00085 ); 00086 return $this; 00087 }
| getButtonUrl | ( | ) |
Definition at line 64 of file Form.php.
00065 { 00066 return $this->helper('giftmessage/url')->getButtonUrl( 00067 $this->getRequest()->getParam('item'), 00068 $this->getRequest()->getParam('type') 00069 ); 00070 }
| getEditUrl | ( | ) |
Definition at line 56 of file Form.php.
00057 { 00058 return $this->helper('giftmessage/url')->getEditUrl( 00059 $this->getRequest()->getParam('entity'), 00060 $this->getRequest()->getParam('type') 00061 ); 00062 }
| getEscaped | ( | $ | value | ) |
| getEscapedForJs | ( | $ | value | ) |
| getMessage | ( | ) |
Definition at line 89 of file Form.php.
00090 { 00091 if(is_null($this->_giftMessage)) { 00092 $this->_initMessage(); 00093 } 00094 00095 return $this->_giftMessage; 00096 }
| getRemoveUrl | ( | ) |
Definition at line 72 of file Form.php.
00073 { 00074 return $this->helper('giftmessage/url')->getRemoveUrl( 00075 $this->getRequest()->getParam('item'), 00076 $this->getRequest()->getParam('type'), 00077 array('uniqueId'=>$this->getRequest()->getParam('uniqueId')) 00078 ); 00079 }
| getSaveUrl | ( | ) |
Definition at line 46 of file Form.php.
00047 { 00048 return $this->helper('giftmessage/url')->getSaveUrl( 00049 $this->getRequest()->getParam('item'), 00050 $this->getRequest()->getParam('type'), 00051 $this->getRequest()->getParam('message'), 00052 array('uniqueId'=>$this->getRequest()->getParam('uniqueId')) 00053 ); 00054 }
| getUniqueId | ( | ) |
Definition at line 108 of file Form.php.
00109 { 00110 return $this->getRequest()->getParam('uniqueId'); 00111 }
1.5.8