Inheritance diagram for Flay:

Public Member Functions | |
| __construct ($text=null) | |
| colorMark ($words, $string) | |
| extractWords ($string) | |
| fragment ($text, $length, $ellipsis= '...') | |
| markedSnippets ($words, $string, $max_snippets=5) | |
| toClean ($text) | |
| toHtml ($text=null, $bare=false, $allowHtml=false) | |
| toParsedAndClean ($text) | |
Public Attributes | |
| $allow_html = false | |
| $text = null | |
Definition at line 42 of file flay.php.
| Flay::__construct | ( | $ | text = null |
) |
Constructor.
| string | $text Text to transform |
Definition at line 62 of file flay.php.
References $text, and __construct().
| Flay::colorMark | ( | $ | words, | |
| $ | string | |||
| ) |
| Flay::extractWords | ( | $ | string | ) |
| Flay::fragment | ( | $ | text, | |
| $ | length, | |||
| $ | ellipsis = '...' | |||
| ) |
| Flay::markedSnippets | ( | $ | words, | |
| $ | string, | |||
| $ | max_snippets = 5 | |||
| ) |
Return given string with words in array colorMarked, up to a number of times (defaults to 5).
| array | $words Words to look for and markup | |
| string | $string String to look in | |
| integer | $max_snippets Max number of snippets to extract |
| Flay::toClean | ( | $ | text | ) |
Returns given text with tags stripped out.
| string | $text Text to clean |
Definition at line 248 of file flay.php.
References $text.
Referenced by toParsedAndClean().
Returns given text translated to HTML using the Flay syntax.
transforms and > to >, no typography additions.
| boolean | $allowHtml Set this to trim whitespace and disable all HTML |
Definition at line 75 of file flay.php.
References $out, $text, and $url.
Referenced by TextHelper::flay(), and toParsedAndClean().
| Flay::toParsedAndClean | ( | $ | text | ) |
| Flay::$text = null |
Definition at line 49 of file flay.php.
Referenced by __construct(), toClean(), toHtml(), and toParsedAndClean().
1.4.7