\cge_url

A simple class for taking apart, modifying, and re-assembling URLS.

Summary

Methods
Properties
Constants
ssl_url()
current_url()
page_url()
set_param()
filename_to_url()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

ssl_url()

ssl_url(string $url) : string

Convert a standard url into an SSL url

Parameters

string $url

The input URL

Returns

string

current_url()

current_url() : string

Attempt to determine the currently requested URL

Returns

string

page_url()

page_url() : string

Get the URL of the currently requested page.

Only works for frontend requests

Returns

string

set_param()

set_param(string $url, string $key, string $value)

Given an existing URL, add or adjust one of the parameters

Parameters

string $url

The input url

string $key

The key name

string $value

The value for the variable

filename_to_url()

filename_to_url(string $filename) : string

Given a filename, convert it to a URL

Parameters

string $filename

The input filename

Returns

string