Procedural File: MY_url_helper.php
Source Location: /helpers/MY_url_helper.php
Page Details:
alink [line 87]
string alink(
[string $uri = ''], [string $title = ''], [mixed $attributes = ''])
|
|
Alink Creates an link based on the some URL.
Parameters
string |
$uri |
url string |
string |
$title |
link title |
mixed |
$attributes |
params to html tag |
anchor_safe [line 44]
string anchor_safe(
[mixed $uri = ''], [string $title = ''], [integer $params_count = 0], [mixed $attributes = ''])
|
|
Anchor Link Creates an anchor based on the local URL. And check if user has a permission to view linked page.
Tags:
Parameters
mixed |
$uri |
url string or array of uri segments |
string |
$title |
link title |
integer |
$params_count |
number of params in uri |
mixed |
$attributes |
params to html tag |
custom_dir_url [line 129]
mixed custom_dir_url(
string $dir)
|
|
Custom Dir URL Create an path from custom dir config file and base_url()
Tags:
Parameters
string |
$dir |
identificantion of dir |
is_url_allowed [line 14]
boolean is_url_allowed(
[string $uri = ''], [integer $params_count = 0])
|
|
Is Url Allowed Check if local url is allowed for logged user
Tags:
Parameters
string |
$uri |
the local url |
integer |
$params_count |
number of params in uri |
remove_diacritic [line 194]
string remove_diacritic(
string $str, [ $transliterations = false], array $transliteration)
|
|
Remove Diacritic
Tags:
Parameters
string |
$str |
|
array |
$transliteration |
optional array of replacement signs |
|
$transliterations |
|
template_url [line 112]
Template URL Create a active template path from Template Class
Tags:
url_title [line 154]
string url_title(
string $str, [string $separator = 'dash'], [array $transliteration = false])
|
|
URL Title Overides standard CI url_title() Adds support for czech diacritic. And converts all to lower. Takes a "title" string as input and creates a human-friendly URL string with either a dash or an underscore as the word separator.
Tags:
Parameters
string |
$str |
|
string |
$separator |
the separator: dash, or underscore |
array |
$transliteration |
optional array of replacement signs |
|
|