Mage_Core_Helper_Url Class Reference

Inheritance diagram for Mage_Core_Helper_Url:

Mage_Core_Helper_Abstract Mage_Catalog_Helper_Product Mage_Catalog_Helper_Product_Compare Mage_Catalog_Helper_Product_Url Mage_Checkout_Helper_Cart Mage_Checkout_Helper_Url Mage_Directory_Helper_Url Mage_GiftMessage_Helper_Url Mage_ProductAlert_Helper_Data

List of all members.

Public Member Functions

 getCurrentUrl ()
 getCurrentBase64Url ()
 getEncodedUrl ($url=null)
 getHomeUrl ()

Protected Member Functions

 _prepareString ($string)


Detailed Description

Definition at line 34 of file Url.php.


Member Function Documentation

_prepareString ( string  )  [protected]

Definition at line 75 of file Url.php.

00076     {
00077         $string = preg_replace('#[^0-9a-z]+#i', '-', $string);
00078         $string = strtolower($string);
00079         $string = trim($string, '-');
00080 
00081         return $string;
00082     }

getCurrentBase64Url (  ) 

Retrieve current url in base64 encoding

Returns:
string

Definition at line 52 of file Url.php.

00053     {
00054         return $this->urlEncode($this->getCurrentUrl());
00055     }

getCurrentUrl (  ) 

Retrieve current url

Returns:
string

Definition at line 42 of file Url.php.

00043     {
00044         return $this->_getUrl('*/*/*', array('_current' => true, '_use_rewrite' => true));
00045     }

getEncodedUrl ( url = null  ) 

Definition at line 57 of file Url.php.

00058     {
00059         if (!$url) {
00060             $url = $this->getCurrentUrl();
00061         }
00062         return $this->urlEncode($url);
00063     }

getHomeUrl (  ) 

Retrieve homepage url

Returns:
string

Definition at line 70 of file Url.php.

00071     {
00072         return Mage::getBaseUrl();
00073     }


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

Generated on Sat Jul 4 17:23:55 2009 for Magento by  doxygen 1.5.8