Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Linkify Class Reference
[Helper Classes]

List of all members.

Detailed Description

Linkfy is a class that does a lot of nifty text effects.

It handles bbcode, sanitizing html, and a variety of effects like rainbow, roller, haxor, etc.

Definition at line 9 of file linkify.inc.php.

Static Public Member Functions

 html2bbcode ($text)
 converts certain basic html codes to equivalent bbcodes
 bbcode ($text)
 take text and format it in bbcode style.
 bbcode2html ($text)
 convert bbcode to html
 capsText ($text)
 convert text to random caps.
 rollerText ($text)
 convert text to roller case.
 rainbowText ($text)
 convert text to rainbow text.
 haxorText ($text)
 convert text to h4x0r text.
 stripNewlines ($text)
 strip newlines from teh text.
 email ($email, $display=null)
 format the text for use in a


Member Function Documentation

Linkify::bbcode text  )  [static]
 

take text and format it in bbcode style.

this takes the text, converts html to bbcode, sanitizes it, converts smilies, then converts everythign back to html theoretically it will protect you from malicious text.

Parameters:
$text the text string to format
Returns:
the html formatted string suitable for display.

Definition at line 65 of file linkify.inc.php.

Referenced by BaseComment::drawCommentBody(), BaseMessage::drawMessageBody(), BaseForum::drawRow(), BaseRPSGame::drawViewPage(), Util::getBlurb(), BaseUserAction::getMessage(), BaseForum::getPublicData(), and BaseForum::getRssItem().

Linkify::bbcode2html text  )  [static]
 

convert bbcode to html

Parameters:
text the bbcode formatted text you want converted to html.
Returns:
the html formatted string

Definition at line 124 of file linkify.inc.php.

References haxorText(), rainbowText(), rollerText(), and stripNewlines().

Linkify::capsText text  )  [static]
 

convert text to random caps.

use at your own risk ;)

Parameters:
$text the text to convert
Returns:
the converted text.

Definition at line 257 of file linkify.inc.php.

Linkify::email email,
display = null
[static]
 

format the text for use in a

 
Parameters:
$text the text to convert
Returns:
the converted text. */ public static function formatPre($text) { return "<pre>" . str_replace("<br>", "", $text) . "</PRE>"; }
/** Draws an email in a spam-bot/web-spider safe fashion. Protects your email.

 
Parameters:
$email the email to print.
$display the text to display
Returns:
the formatted email

Definition at line 533 of file linkify.inc.php.

Referenced by BaseUser::drawDeleteMePage(), getReportErrorForm(), and BaseUser::sendActivationEmail().

Linkify::haxorText text  )  [static]
 

convert text to h4x0r text.

use at your own risk ;)

Parameters:
$text the text to convert
Returns:
the converted text.

Definition at line 432 of file linkify.inc.php.

Referenced by bbcode2html().

Linkify::html2bbcode text  )  [static]
 

converts certain basic html codes to equivalent bbcodes

Parameters:
$text the html text to convert
Returns:
the html text with recognized tags converted to bbcode

Definition at line 17 of file linkify.inc.php.

Linkify::rainbowText text  )  [static]
 

convert text to rainbow text.

use at your own risk ;)

Parameters:
$text the text to convert
Returns:
the converted text.

Definition at line 370 of file linkify.inc.php.

Referenced by bbcode2html().

Linkify::rollerText text  )  [static]
 

convert text to roller case.

use at your own risk ;)

Parameters:
$text the text to convert
Returns:
the converted text.

Definition at line 308 of file linkify.inc.php.

Referenced by bbcode2html().

Linkify::stripNewlines text  )  [static]
 

strip newlines from teh text.

Parameters:
$text the text to convert
Returns:
the converted text.

Definition at line 510 of file linkify.inc.php.

Referenced by bbcode2html().


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:41 2006 for BaseJumper by doxygen 1.3.9.1