| [ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 102 lignes (3 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
TemplateUtils:: (5 méthodes):
TemplateUtils()
htmlTranslate()
addShowMoreLink()
cutString()
getLinks()
Classe: TemplateUtils - X-Ref
| TemplateUtils( $blogInfo ) X-Ref |
| Constructor. We need the blogInfo object to get some information about the current blog and so on |
| htmlTranslate( $string ) X-Ref |
| Transforms some characters into their HTML entities param: string The string we'd like to translate return: Returns the translated string. |
| addShowMoreLink( $post, $maxWords, $linkText ) X-Ref |
| Manually adds the "show more" link in a post. param: post The post we are going to cut. param: maxWords Amount of words we'd like to allow. param: linkText Text we are going to show. return: The modified link. |
| cutString( $string, $n ) X-Ref |
| Cuts a string after 'n' characters. param: string The string. return: The string cut to 'n' characters. |
| getLinks( $string ) X-Ref |
| Returns an array with all the links in a string. param: string The string return: An array with the links in the string. |
| Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
|