# \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
final

File
  lib/class.cge_url.php
Package
  \CGExtensions
Class hierarchy
  \cge_url

## Tags

todo |

## Methods

### ssl_url()

    ssl_url(string $url) : string

Convert a standard url into an SSL url

#### Parameters

string | $url | The input URL

#### Returns

string

#

static

## Tags

todo |

### current_url()

    current_url() : string

Attempt to determine the currently requested URL

#### Returns

string

#

static

#### Deprecated

## Tags

todo |

### page_url()

    page_url() : string

Get the URL of the currently requested page.

Only works for frontend requests

#### Returns

string

#

static

#### Deprecated

## Tags

todo |

### 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

#

static

#### Deprecated

## Tags

returns | string The resulting URL
todo |

### 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

#

static

## Tags

todo |

### class.cge_url.php