Mage_GiftMessage_Helper_Url Class Reference

Inheritance diagram for Mage_GiftMessage_Helper_Url:

Mage_Core_Helper_Url Mage_Core_Helper_Abstract

List of all members.

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


Detailed Description

Definition at line 35 of file Url.php.


Member Function Documentation

getButtonUrl ( itemId,
type,
params = array() 
)

Retrive gift message button block url

Parameters:
integer $itemId
string $type
array $params
Returns:
string

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

Parameters:
Varien_Object $item
string $type
array $params
Returns:
string

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

Retrive gift message remove url

Parameters:
integer $itemId
string $type
array $params
Returns:
string

Definition at line 78 of file Url.php.

00079     {
00080          $params = array_merge($params, array('item'=>$itemId, 'type'=>$type));
00081          return $this->_getUrl('giftmessage/index/remove', $params);
00082     }

getSaveUrl ( itemId,
type,
giftMessageId = null,
params = array() 
)

Retrive gift message save url

Parameters:
integer $itemId
string $type
string $giftMessageId
array $params
Returns:
string

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     }


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

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