Packageindex Classtrees Modulegroups Elementlist Report XML Files

PathInfo

PathInfo

private class PathInfo

 

Public Method Summary

void PathInfo()
Constructor. Parses $_SERVER['REQUEST_URI'] and stores the info.
object PathInfo &singleton()
Instantiate one copy of this object.
string getRequestType()
Returns the request type
string getCurrentRequest()
Returns the current request (section or module url_id)
boolean isCurrentRequest(string $url_id)
Tests whether a given string is the current request (section or module)
boolean isInPath(string $url_id)
Tests whether a url_id is in the current path or not. Used mainly with sections.
boolean isParentOfCurrentRequest(string $url_id)
Tests if a url_id is the immediate parent of the current section

Private Method Summary

void _setRequestType(string $type)
sets the request type
void _setCurrentRequest(string $request)
Sets the current request

Private Field Summary

string $requestType

string $currentRequest

Public Method Details

PathInfo

public void PathInfo()

 

Returns void


&singleton

public object PathInfo &singleton()

 

Returns object PathInfo


getRequestType

public string getRequestType()

 

Returns string

The Request type


getCurrentRequest

public string getCurrentRequest()

 

Returns string

url_id of the current request


isCurrentRequest

public boolean isCurrentRequest(string $url_id)

 

Parameter
string $url_id
to be tested
Returns boolean


isInPath

public boolean isInPath(string $url_id)

 

Parameter
string $url_id
of section or module to be tested.
Returns boolean


isParentOfCurrentRequest

public boolean isParentOfCurrentRequest(string $url_id)

 

Parameter
string $url_id
of section to be tested.
Returns boolean


Private Method Details

_setRequestType

private void _setRequestType(string $type)

 

Parameter
string $type
request type
Returns void


_setCurrentRequest

private void _setCurrentRequest(string $request)

 

Parameter
string $request
current request
Returns void


Private Field Details

$requestType

private string $requestType

>><<


$currentRequest

private string $currentRequest

>><<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Fri, 28 Apr 2006 19:06:12 -0400 by PHPDoc v1.5 www.phpdoc.de