-
Quick start
-
The basics
-
Helper classes
- Benchmark Class
- Cache Class
- Captcha Class
- cURL Class
- Database Class
- Date Class
- Errors Class
- FileSystem Class
- FTP Class
- Images Class
- Language Class
- Logger Class
- Number Class
- PayPal Class
- PHPMailer Class
- Plugins Class
- RestClient Class
- Security Class
- Template Class
- Text Class
- URL Class
- XML Class
- ZIP Class
URL class
The following sections explain each method of the class.
set_use_mod_rewrite
public static void set_use_mod_rewrite ( boolean $mod)
Sets the extension mod_rewrite
to Active for the URL helper classes. the extension does not exist, an error message is issued.
Parameter list
mod
Enables or disables the mod_rewrite
in the URL class.
set_use_file_extension
public static void set_use_file_extension ( string $extension)
If the URL helper class mod_rewrite
must build URL's they have a particular file extension, this is set here.
Parameter list
extension
The file extension of each mod_rewrite
URL.
loc_url_simple (from v2.5.0)
public static void loc_url_simple ( array $parameters)
This method is a combination of the method get_url_simple
and the method loc
. Debi you have only the parameter and the function adds it to the current ROOT URL and redirect you. Here are mod_rewrite
settings as well observed as in the method get_url_simple
.
Parameter list
parameters
Includes all parameters for calling the URL
get_url_simple
public static string get_url_simple ( string $httpRoot, array $parameters)
Converts a URL into a mod_rewrite
URL to when active or is a $_GET
return address.
Parameter list
httpRoot
The HTTP URL root of the web server.
parameters
An array of all $_GET
parameters. As an example, this may look like this:
array('c' => 'myClass', 'm' => 'myMethod')
With mod_rewrite
the returned URL would look like this:
http://myHttpRoot/myClass/myMethod.html
Without mod_rewrite
the returned URL would look like this:
http://myHttpRoot/index.php?c=myClass&m=myMethod
createValidUrlString
public static string createValidUrlString ( string $url)
Creates a Valid URL and removes any disallowed characters from the string.
Parameter list
url
The URL string whose content is to be validated.
getCurrentUrl
public static string getCurrentUrl ( )
Is the current URL back to which one finds oneself.
loc
public static void loc ( string $url)
Manages the URL passed on.
Parameter list
url
The URL to the Redirected to be.
reload
public static void reload ( )
Updates the current view of the current URL.
back
public static void back ( )
Redirects back to the previous page.