Mage_GiftMessage_Block_Message_Form Class Reference

Inheritance diagram for Mage_GiftMessage_Block_Message_Form:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getSaveUrl ()
 getEditUrl ()
 getButtonUrl ()
 getRemoveUrl ()
 getMessage ()
 getEscaped ($value)
 getEscapedForJs ($value)
 getUniqueId ()

Protected Member Functions

 _initMessage ()

Protected Attributes

 $_giftMessage = null


Detailed Description

Definition at line 35 of file Form.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

_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  ) 

Definition at line 98 of file Form.php.

00099     {
00100         return $this->htmlEscape($value);
00101     }

getEscapedForJs ( value  ) 

Definition at line 103 of file Form.php.

00104     {
00105         return addcslashes($value, "\\'\n\r\t");
00106     }

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     }


Member Data Documentation

$_giftMessage = null [protected]

Definition at line 38 of file Form.php.


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

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