From dada2432f09f32c1202f5c42e1f45bc0b94d9021 Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 5 Jun 2005 04:56:55 +0000 Subject: [PATCH] Merging current trunk into my sandbox. Added docblocks that where missing from some files in the trunk git-svn-id: https://svn.cakephp.org/repo/trunk/cake@227 3807eeeb-6ff5-0310-8944-8be069107fe0 --- libs/flay.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/libs/flay.php b/libs/flay.php index c4fc533a4..32c911f6b 100644 --- a/libs/flay.php +++ b/libs/flay.php @@ -189,10 +189,24 @@ class Flay extends Object { return $out; } +/** + * Enter description here... + * + * @param unknown_type $string + * @return unknown + */ function extractWords ($string) { return preg_split('/[\s,\.:\/="!\(\)<>~\[\]]+/', $string); } +/** + * Enter description here... + * + * @param unknown_type $words + * @param unknown_type $string + * @param unknown_type $max_snippets + * @return unknown + */ function markedSnippets ($words, $string, $max_snippets=5) { $string = strip_tags($string); @@ -214,6 +228,13 @@ class Flay extends Object { return Flay::colorMark($words, $snips); } +/** + * Enter description here... + * + * @param unknown_type $words + * @param unknown_type $string + * @return unknown + */ function colorMark($words, $string) { $colors = array('yl','gr','rd','bl','fu','cy'); @@ -226,10 +247,24 @@ class Flay extends Object { return $string; } +/** + * Enter description here... + * + * @param unknown_type $text + * @return unknown + */ function toClean ($text) { return strip_tags(html_entity_decode($text, ENT_QUOTES)); } +/** + * Enter description here... + * + * @param unknown_type $text + * @param unknown_type $length + * @param unknown_type $elipsis + * @return unknown + */ function fragment ($text, $length, $elipsis='...') { $soft=$length-5; $hard=$length+5;