File/functions/url_functions.php

Description

CodeIgniter

An open source application development framework for PHP 4.3.2 or newer

Functions
anchor (line 99)

Anchor Link

Creates an anchor based on the local URL.

  • access: public
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.

  • access: public
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.

  • access: public
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

  • access: public
string base_url ()
drop_special_chars (line 572)
void drop_special_chars ( $str)
  • $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.

  • access: public
string get_query_string ()
index_page (line 77)

Index page

Returns the "index_page" from your config file

  • access: public
string index_page ()
isEmpty (line 547)
void isEmpty ( $word)
  • $word
is_utf (line 538)
void is_utf ( $t)
  • $t
mailto (line 187)

Mailto Link

  • access: public
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

  • access: public
string prep_url ([string $str = ''])
  • string $str: the URL
redirect (line 479)

Header Redirect

Header redirect in two flavors

  • access: public
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 = '/'])
  • $str
  • $union
safe_mailto (line 216)

Encoded Mailto Link

Create a spam-protected mailto link written in Javascript

  • access: public
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.

  • access: public
string site_url ([string $uri = ''])
  • 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.

  • access: public
string url_title (string $str, [string $separator = 'dash'])
  • string $str: the string
  • string $separator: the separator: dash, or underscore

Documentation generated on Tue, 22 Nov 2011 13:29:02 -0200 by phpDocumentor 1.4.3