Flay Class Reference
Inheritance diagram for Flay:

Public Member Functions | |
| 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 | |
Detailed Description
Definition at line 44 of file flay.php.
Member Function Documentation
| 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).
- Parameters:
-
array $words Words to look for and markup string $string String to look in integer $max_snippets Max number of snippets to extract
- Returns:
- string String with words marked
- See also:
- colorMark public
| Flay::toClean | ( | $ | text | ) |
Returns given text translated to HTML using the Flay syntax.
transforms and > to >, no typography additions.
- Parameters:
-
boolean $allowHtml Set this to trim whitespace and disable all HTML
- Returns:
- string Formatted text public
Definition at line 77 of file flay.php.
References $out, $text, and $url.
Referenced by TextHelper::flay(), and toParsedAndClean().
| Flay::toParsedAndClean | ( | $ | text | ) |
Member Data Documentation
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/libs/flay.php