Static Public Member Functions | |
static | specialchars ($str, $double_encode=TRUE) |
Convert special characters to HTML entities. | |
static | query_string ($array) |
Creates an HTTP query string from an array. | |
static | anchor ($uri, $title=FALSE, $attributes=FALSE, $protocol=FALSE, $id_as_title=TRUE) |
Create HTML link anchors. | |
static | file_anchor ($file, $title=FALSE, $attributes=FALSE, $protocol=FALSE) |
Creates an HTML anchor to a file. | |
static | panchor ($protocol, $uri, $title=FALSE, $attributes=FALSE) |
Similar to anchor, but with the protocol parameter first. | |
static | mailto ($email, $title=FALSE, $attributes=FALSE) |
Creates a email anchor. | |
static | breadcrumb ($segments=NULL) |
Generate a "breadcrumb" list of anchors representing the URI. | |
static | stylesheet ($style, $media=FALSE, $index=FALSE) |
Creates a stylesheet link. | |
static | link ($href, $rel, $type, $suffix=FALSE, $media=FALSE, $index=FALSE) |
Creates a link tag. | |
static | script ($script, $index=FALSE) |
Creates a script link. | |
static | execute_script ($script) |
Creates a script link. | |
static | image ($attr=NULL, $index=FALSE) |
Creates a image link. | |
static | attributes ($attrs) |
Compiles an array of HTML attributes into an attribute string. | |
static | menu_item_counter ($count, $color=NULL) |
Menu item counter for view menu. |
|
static |
Create HTML link anchors.
string | URL or URI string |
string | link text |
array | HTML anchor attributes |
string | non-default protocol, eg: https |
$id_as_title | if title is empty and link ends with ID, use ID or full uri as title? |
|
static |
Compiles an array of HTML attributes into an attribute string.
string|array | array of attributes |
|
static |
Generate a "breadcrumb" list of anchors representing the URI.
array | segments to use as breadcrumbs, defaults to using Router::$segments |
|
static |
Creates a script link.
string|array | filename |
boolean | include the index_page in the link |
|
static |
Creates an HTML anchor to a file.
string | name of file to link to |
string | link text |
array | HTML anchor attributes |
string | non-default protocol, eg: ftp |
|
static |
Creates a image link.
string|array | array of html attributes, or an image name |
boolean | include the index_page in the link |
|
static |
Creates a link tag.
string|array | filename |
string|array | relationship |
string|array | mimetype |
string | specifies suffix of the file |
string|array | specifies on what device the document will be displayed |
boolean | include the index_page in the link |
|
static |
Creates a email anchor.
string | email address to send to |
string | link text |
array | HTML anchor attributes |
|
static |
Menu item counter for view menu.
integer | $count | |
string | $color |
|
static |
Similar to anchor, but with the protocol parameter first.
string | link protocol |
string | URI or URL to link to |
string | link text |
array | HTML anchor attributes |
|
static |
Creates an HTTP query string from an array.
Deprecated.
array | array of data to convert to string |
|
static |
Creates a script link.
string|array | filename |
boolean | include the index_page in the link |
|
static |
Convert special characters to HTML entities.
string | string to convert |
boolean | encode existing entities |
|
static |
Creates a stylesheet link.
string|array | filename, or array of filenames to match to array of medias |
string|array | media type of stylesheet, or array to match filenames |
boolean | include the index_page in the link |