static string decodeQueryParams(
$tk
)
|
|
Static method to return the decoded GET paramters from an encrytpted tk value
Parameters:
API Tags:
Information Tags:
static string encodeQuery(
string
$queryString
)
|
|
Static method for encoding a query string
Parameters:
API Tags:
Information Tags:
static string generateSecureURL(
string
$params
)
|
|
Static method for generating an absolute, secure URL for a page controller
Parameters:
API Tags:
Information Tags:
static array getDecodeQueryParams(
$tk
)
|
|
Static method to return the decoded GET paramters from an encrytpted tk value as an array of key/value pairs.
Parameters:
API Tags:
Information Tags:
FrontController __construct(
)
|
|
The constructor method
API Tags:
Information Tags:
Throws: | ResourceNotFoundException |
Since: | 1.0 |
boolean checkAlias(
string
$alias
)
|
|
Check to see if an alias exists for the given alias name
Parameters:
API Tags:
Information Tags:
string getAliasController(
string
$alias
)
|
|
Gets the full name of the controller for the given alias
Parameters:
API Tags:
Information Tags:
string getAliasParam(
string
$alias
)
|
|
Gets the parameter name expected in requests to the controller with the given alias
Parameters:
API Tags:
Information Tags:
string getControllerAlias(
string
$controller
)
|
|
Gets the name of the alias for the given controller
Parameters:
API Tags:
Information Tags:
string getControllerParam(
string
$controller
)
|
|
Gets the parameter name expected in requests to the controller with the given controller name
Parameters:
API Tags:
Information Tags:
Returns the array of filters currently attached to this FrontController
API Tags:
Information Tags:
string getPageController(
)
|
|
Getter for the page controller
API Tags:
Information Tags:
boolean hasAlias(
string
$controller
)
|
|
Check to see if an alias exists for the given controller name
Parameters:
API Tags:
Information Tags:
void loadController(
[boolean
$allowRedirects = true]
)
|
|
Method to load the page controller
Parameters:
boolean |
$allowRedirects: |
Defaults to true, set to false if you want to prevent the front controller from redirecting the request |
API Tags:
Information Tags:
Throws: | ResourceNotFoundException |
Since: | 1.0 |
void registerAlias(
string
$controller, string
$alias, [string
$param = null]
)
|
|
Used to register a controller alias to enable shorter URLs with mod_rewrite support enabled. Note that only controllers with a single parameter are supported.
Parameters:
string |
$controller: |
The name of the page controller class |
string |
$alias: |
The URL alias for the page controller |
string |
$param: |
The name of the GET parameter on the alias URL request |
API Tags:
Information Tags:
Add the supplied filter object to the list of filters ran on each request to the front controller
Parameters:
API Tags:
Information Tags:
Throws: | IllegalArguementException |
Since: | 1.0 |
void setEncrypt(
boolean
$encryptedQuery
)
|
|
Sets the encryption flag
Parameters:
API Tags:
Information Tags: