format.lib.php File Reference

Several helper methods for page formatting. More...


Functions

 formatHtml ($string)
 format html so that l10n caracters (encoding) are properly displayed
 formatDate ($timestamp)
 format a date
 formatAuthor ($author, $email)
 format a link for author and email
 formatEmail ($email)
 format email
 formatName ($login, $first_name, $last_name)
 format name
 formatSize ($size)
 format a size
 formatMonth ($month)
 format a month according to i18n
 formatDay ($day)
 format a day according to i18n
 formatSmallDay ($day)
 format a day according to i18n with lesser letter


Detailed Description

Several helper methods for page formatting.

This file creates no hook.


Function Documentation

formatAuthor ( author,
email 
)

format a link for author and email

Parameters:
author 
email (optional : maybe empty)
Returns:
formatted link

formatDate ( timestamp  ) 

format a date

Parameters:
timestamp the date to format
Returns:
formatted string

formatDay ( day  ) 

format a day according to i18n

Parameters:
day day to format

formatEmail ( email  ) 

format email

Parameters:
email the email to encode
Returns:
formatted email

formatHtml ( string  ) 

format html so that l10n caracters (encoding) are properly displayed

I'm searching for a simpler version because I guess this one is slow, but I didn't find any yet.

Parameters:
string the string to format (both html entities and encoding)
Returns:
formated string

formatMonth ( month  ) 

format a month according to i18n

Parameters:
month month to format

formatName ( login,
first_name,
last_name 
)

format name

Parameters:
login 
first_name 
last_name 
Returns:
formatted information

formatSize ( size  ) 

format a size

Parameters:
size size to format
Returns:
formatted size

formatSmallDay ( day  ) 

format a day according to i18n with lesser letter

Parameters:
day day to format


Generated on Mon Feb 19 19:11:58 2007 for Wiclear by  doxygen 1.4.7