phpDocumentor Rewrite
Parsers
[ class tree: Rewrite ] [ index: Rewrite ] [ all elements ]

Class: IsapiRewriteUrlGenerator

Source Location: /modules/rewrite/classes/parsers/isapirewrite/IsapiRewriteUrlGenerator.class

Class IsapiRewriteUrlGenerator

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From RewriteUrlGenerator

RewriteUrlGenerator::$_error
RewriteUrlGenerator::$_shortUrls

Inherited From GalleryUrlGenerator

GalleryUrlGenerator::$_currentBaseHost
GalleryUrlGenerator::$_currentUrl
GalleryUrlGenerator::$_currentUrlBaseDir
GalleryUrlGenerator::$_embedSessionString
GalleryUrlGenerator::$_file
GalleryUrlGenerator::$_host
GalleryUrlGenerator::$_isCookiePathConfigured
GalleryUrlGenerator::$_path
GalleryUrlGenerator::$_protocol

Inherited From RewriteUrlGenerator

RewriteUrlGenerator::generateUrl()
RewriteUrlGenerator::init()
RewriteUrlGenerator::loadEntity()
Load entity.
RewriteUrlGenerator::_getBaseParamString()
Return the base URL parameters for all generated short URLs, e.g. '?module=gallery'.
RewriteUrlGenerator::_getBaseUrl()
Return the base URL for all generated short URLs.
RewriteUrlGenerator::_getShortUrl()
Return first short URL to match URL params.
RewriteUrlGenerator::_onLoad()
This function is called at the end of URL generator initialization. If an onLoad function is specified for the current view it loads the needed file and calls the function which should parse any request params that wasn't parsed by the rewrite parser (e.g. %path% to itemId).
RewriteUrlGenerator::_parseShortUrl()
Substitute all keywords with values from URL params or custom functions.

Inherited From GalleryUrlGenerator

GalleryUrlGenerator::appendParamsToUrl()
Append parameters to a URL using the Gallery prefix and URL encoding keys and values.
GalleryUrlGenerator::assertIsInternalUrl()
Assert that the given URL is internal to the application
GalleryUrlGenerator::embedForceSessionId()
Decide whether to include session id in the URL.
GalleryUrlGenerator::generateUrl()
Generate a Gallery URL.
GalleryUrlGenerator::getCacheableUrl()
Return a URL that is stripped of all parameters that don't directly affect the output of the page, like navigation parameters. This URL can be used as the cache key for this page.
GalleryUrlGenerator::getCookiePath()
Get the cookie path that will encompass Gallery (and CMS app if embedded).
GalleryUrlGenerator::getCurrentRequestUri()
Return the current request URI.
GalleryUrlGenerator::getCurrentUrl()
Return the complete URL of the current request.
GalleryUrlGenerator::getCurrentUrlDir()
Return the base directory of all generated URLs. Eg, if the URL is:
GalleryUrlGenerator::getGalleryId()
Old multisite system used a galleryId based on the current URL. Return a value here so sites won't break before they can upgrade.
GalleryUrlGenerator::getHostName()
Return the host name for the current request.
GalleryUrlGenerator::getNavigationId()
Get the current navigation id.
GalleryUrlGenerator::getNavigationLinks()
Get a list of navigation links to go back to where we came from.
GalleryUrlGenerator::getNavigationReturnUrl()
Get an URL to return to the currently loaded view, stripping all parameters that are of navigational nature.
GalleryUrlGenerator::init()
Configure the GalleryUrlGenerator with all the data it needs.
GalleryUrlGenerator::initNavigation()
Initialize the navigation.
GalleryUrlGenerator::isNavigationBackPossible()
Check if we currently have a back link to where we came from.
GalleryUrlGenerator::makeAbsoluteUrl()
Make a given URL an absolute Gallery URL. The specified URL can be relative (e.g. main.php), server-relative (e.g. /gallery2/main.php) or already absolute.
GalleryUrlGenerator::makeRelativeUrl()
Translate the given absolute URL to a relative URL.
GalleryUrlGenerator::makeUrl()
Add given path to current protocol/server/port to create full URL.
GalleryUrlGenerator::_flattenParamsArray()
Convert a structure of nested URL parameters into a flat array of parameters.
GalleryUrlGenerator::_getLocalPath()
Check for a local override of an href path (to override a css or js file, for example).
GalleryUrlGenerator::_parseUri()
Split a URI string into file, path, host and protocol substrings and normalize them.
GalleryUrlGenerator::_saveLocalUrlMap()
Save changes to the local URL map.
GalleryUrlGenerator::_saveLocalUrlMapPhp5()
Compatibility function for PHP 5.3. See comment in GalleryUrlGenerator::_getLocalPath.

[ Top ]
Method Summary
void   generateUrl()  
void   getCurrentUrlDir()  
void   init()  
void   initNavigation()  

[ Top ]
Methods
generateUrl  [line 78]

  void generateUrl( [ $params = array()], [ $options = array()]  )

Parameters:
   $params: 
   $options: 

API Tags:
See:  GalleryUrlGenerator::generateUrl


Redefinition of:
RewriteUrlGenerator::generateUrl()

[ Top ]
getCurrentUrlDir  [line 98]

  void getCurrentUrlDir( [ $forceDirect = false]  )

Parameters:
   $forceDirect: 

API Tags:
See:  GalleryUrlGenerator::getCurrentUrlDir We don't have to override neither GalleryUrlGenerator::getCurrentUrl() or GalleryUrlGenerator::getCurrentUrlDir() because REQUEST_URI gets rewritten correctly by isapi_rewrite. (REQUEST_URI is only non-empty on IIS if isapi_rewrite is used!) But we want to add a check if the RewriteUrlGenerator has been configured and force a fallback if that is not the case.


Redefinition of:
GalleryUrlGenerator::getCurrentUrlDir()
Return the base directory of all generated URLs. Eg, if the URL is:

[ Top ]
init  [line 42]

  void init( [ $baseUri = null], [ $g2Uri = null], [ $embedSessionString = null]  )

Parameters:
   $baseUri: 
   $g2Uri: 
   $embedSessionString: 

API Tags:
See:  GalleryUrlGenerator::init


Redefinition of:
RewriteUrlGenerator::init()

[ Top ]
initNavigation  [line 61]

  void initNavigation( )


API Tags:
See:  GalleryUrlGenerator::initNavigation


Redefinition of:
GalleryUrlGenerator::initNavigation()
Initialize the navigation.

[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:21:47 -0700 by phpDocumentor 1.3.0RC6