Help class for handling links that could contain chars that would break Kohanas routing ('/'). More...
Public Member Functions | |
encode ($str) | |
Encode a string so that it is possible to use it without risk in Kohana. | |
decode ($str) | |
Decode a string that has been encoded using the encode method. | |
Static Public Member Functions | |
static | linkify ($text) |
Primitively 'detect' URI:s in a text and wrap in a html anchor element. |
Help class for handling links that could contain chars that would break Kohanas routing ('/').
link::decode | ( | $ | str | ) |
Decode a string that has been encoded using the encode method.
The 'all' string has been given a special meaning and is therefore not decoded.
$str |
link::encode | ( | $ | str | ) |
Encode a string so that it is possible to use it without risk in Kohana.
The 'all' string has been given a special meaning and is therefore not encoded.
$str |
static link::linkify | ( | $ | text | ) | [static] |
Primitively 'detect' URI:s in a text and wrap in a html anchor element.
$text | string |