Public Member Functions | |
getEditUrl (Varien_Object $item, $type, $params=array()) | |
getButtonUrl ($itemId, $type, $params=array()) | |
getRemoveUrl ($itemId, $type, $params=array()) | |
getSaveUrl ($itemId, $type, $giftMessageId=null, $params=array()) |
Definition at line 35 of file Url.php.
getButtonUrl | ( | $ | itemId, | |
$ | type, | |||
$ | params = array() | |||
) |
Retrive gift message button block url
integer | $itemId | |
string | $type | |
array | $params |
Definition at line 64 of file Url.php.
00065 { 00066 $params = array_merge($params, array('item'=>$itemId, 'type'=>$type)); 00067 return $this->_getUrl('giftmessage/index/button', $params); 00068 }
getEditUrl | ( | Varien_Object $ | item, | |
$ | type, | |||
$ | params = array() | |||
) |
Retrive gift message save url
Varien_Object | $item | |
string | $type | |
array | $params |
Definition at line 45 of file Url.php.
00046 { 00047 if($item->getGiftMessageId()) { 00048 $params = array_merge($params, array('message'=>$item->getGiftMessageId(), 'item'=>$item->getId(), 'type'=>$type)); 00049 return $this->_getUrl('giftmessage/index/edit', $params); 00050 } else { 00051 $params = array_merge($params, array('item'=>$item->getId(), 'type'=>$type)); 00052 return $this->_getUrl('giftmessage/index/new', $params); 00053 } 00054 }
getRemoveUrl | ( | $ | itemId, | |
$ | type, | |||
$ | params = array() | |||
) |
getSaveUrl | ( | $ | itemId, | |
$ | type, | |||
$ | giftMessageId = null , |
|||
$ | params = array() | |||
) |
Retrive gift message save url
integer | $itemId | |
string | $type | |
string | $giftMessageId | |
array | $params |
Definition at line 93 of file Url.php.
00094 { 00095 if(!is_null($giftMessageId)) { 00096 $params = array_merge($params, array('message'=>$giftMessageId, 'item'=>$itemId, 'type'=>$type)); 00097 return $this->_getUrl('giftmessage/index/save', $params); 00098 } else { 00099 $params = array_merge($params, array('item'=>$itemId, 'type'=>$type)); 00100 return $this->_getUrl('giftmessage/index/save', $params); 00101 } 00102 }