default
[ class tree: default ] [ index: default ] [ all elements ]

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
[ Top ]



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:

access:  public


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
[ Top ]



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:

return:  boolean false if dir not found | string dir path
access:  public


Parameters

string   $dir   identificantion of dir
[ Top ]



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:

access:  public


Parameters

string   $uri   the local url
integer   $params_count   number of params in uri
[ Top ]



remove_diacritic [line 194]

string remove_diacritic( string $str, [ $transliterations = false], array $transliteration)

Remove Diacritic



Tags:

access:  public


Parameters

string   $str  
array   $transliteration   optional array of replacement signs
   $transliterations  
[ Top ]



template_url [line 112]

string template_url( )

Template URL

Create a active template path from Template Class




Tags:

access:  public


[ Top ]



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:

access:  public


Parameters

string   $str  
string   $separator   the separator: dash, or underscore
array   $transliteration   optional array of replacement signs
[ Top ]



Documentation generated on Sun, 11 Jan 2009 04:21:11 +0100 by phpDocumentor 1.4.1