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
- See also:
- colorMark
| Flay::toClean | ( | $ | text | ) |
Returns given text translated to HTML using the Flay syntax.
- Parameters:
-
string $text String to format boolean $bare Set this to only do
- Parameters:
-
boolean $allowHtml Set this to trim whitespace and disable all HTML
- Returns:
- string Formatted text
Definition at line 74 of file flay.php.
References $text.
Referenced by TextHelper::flay(), and toParsedAndClean().
| Flay::toParsedAndClean | ( | $ | text | ) |
Member Data Documentation
The documentation for this class was generated from the following file:
- 1.1.x.x/cake/libs/flay.php