Public Member Functions | |
__construct () | |
setEntity ($entity) | |
getEntity () | |
setType ($type) | |
getType () | |
hasGiftMessage () | |
setScriptIncluded ($value) | |
getScriptIncluded () | |
getJsObjectName () | |
getEditUrl () | |
getMessage () | |
Protected Member Functions | |
_initMessage () | |
Protected Attributes | |
$_entity = null | |
$_type = null | |
$_giftMessage = null | |
Static Protected Attributes | |
static | $_scriptIncluded = false |
Definition at line 35 of file Helper.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 44 of file Helper.php.
00045 { 00046 parent::__construct(); 00047 $this->setTemplate('giftmessage/helper.phtml'); 00048 }
_initMessage | ( | ) | [protected] |
Definition at line 98 of file Helper.php.
00099 { 00100 $this->_giftMessage = $this->helper('giftmessage/message')->getGiftMessage( 00101 $this->getEntity()->getGiftMessageId() 00102 ); 00103 return $this; 00104 }
getEditUrl | ( | ) |
Definition at line 93 of file Helper.php.
00094 { 00095 return $this->helper('giftmessage/url')->getEditUrl($this->getEntity(), $this->getType()); 00096 }
getEntity | ( | ) |
getJsObjectName | ( | ) |
getMessage | ( | ) |
Definition at line 106 of file Helper.php.
00107 { 00108 if(is_null($this->_giftMessage)) { 00109 $this->_initMessage(); 00110 } 00111 00112 return $this->_giftMessage; 00113 }
getScriptIncluded | ( | ) |
getType | ( | ) |
hasGiftMessage | ( | ) |
Definition at line 72 of file Helper.php.
00073 { 00074 return $this->getEntity()->getGiftMessageId() > 0; 00075 }
setEntity | ( | $ | entity | ) |
setScriptIncluded | ( | $ | value | ) |
setType | ( | $ | type | ) |
$_entity = null [protected] |
Definition at line 38 of file Helper.php.
$_giftMessage = null [protected] |
Definition at line 40 of file Helper.php.
$_scriptIncluded = false [static, protected] |
Definition at line 42 of file Helper.php.
$_type = null [protected] |
Definition at line 39 of file Helper.php.