anchor (line
99)
Anchor Link
Creates an anchor based on the local URL.
string
anchor
([string $uri = ''], [string $title = ''], [mixed $attributes = ''])
-
string
$uri: the URL
-
string
$title: the link title
-
mixed
$attributes: any attributes
anchor_popup (line
145)
Anchor Link - Pop-up version
Creates an anchor based on the local URL. The link opens a new window based on the attributes specified.
string
anchor_popup
([string $uri = ''], [string $title = ''], [mixed $attributes = FALSE])
-
string
$uri: the URL
-
string
$title: the link title
-
mixed
$attributes: any attributes
auto_link (line
330)
Auto-linker
Automatically links URL and Email addresses. Note: There's a bit of extra code here to deal with URLs or emails that end in a period. We'll strip these off and add them after the link.
string
auto_link
(string $str, [string $type = 'both'], [bool $popup = FALSE])
-
string
$str: the string
-
string
$type: the type: email, url, or both
-
bool
$popup: whether to create pop-up links
base_url (line
58)
Base URL
Returns the "base_url" item from your config file
string
base_url
()
drop_special_chars (line
572)
void
drop_special_chars
( $str)
get_query_string (line
669)
Get Query String
Devuelve una cadena de Query String basada en $_GET. Si se pasan cadenas como parametros se omiten las respectivas variables de $_GET del retorno de la funcion.
string
get_query_string
()
index_page (line
77)
Index page
Returns the "index_page" from your config file
string
index_page
()
isEmpty (line
547)
void
isEmpty
( $word)
is_utf (line
538)
void
is_utf
( $t)
mailto (line
187)
Mailto Link
string
mailto
(string $email, [string $title = ''], [mixed $attributes = ''])
-
string
$email: the email address
-
string
$title: the link title
-
mixed
$attributes: any attributes
prep_url (line
394)
Prep URL
Simply adds the http:// part if missing
string
prep_url
([string $str = ''])
redirect (line
479)
Header Redirect
Header redirect in two flavors
string
redirect
([string $uri = ''], [string $method = 'location'])
-
string
$uri: the URL
-
string
$method: the method: location or redirect
replace (line
649)
void
replace
( $str, [ $union = '/'])
safe_mailto (line
216)
Encoded Mailto Link
Create a spam-protected mailto link written in Javascript
string
safe_mailto
(string $email, [string $title = ''], [mixed $attributes = ''])
-
string
$email: the email address
-
string
$title: the link title
-
mixed
$attributes: any attributes
site_url (line
39)
Site URL
Create a local URL based on your basepath. Segments can be passed via the first parameter either as a string or an array.
string
site_url
([string $uri = ''])
strtosem (line
609)
void
strtosem
( $str, [ $deleteEmpty = true], [ $id = FALSE], [ $sep = '/'])
-
$str
-
$deleteEmpty
-
$id
-
$sep
url_title (line
425)
Create URL Title
Takes a "title" string as input and creates a human-friendly URL string with either a dash or an underscore as the word separator.
string
url_title
(string $str, [string $separator = 'dash'])
-
string
$str: the string
-
string
$separator: the separator: dash, or underscore