Private Method Details |
newsbox_posted_by |
private string newsbox_posted_by( array $row, integer $preview )
|
|
The 'posted by' header in a news box
|
Parameter |
|
array |
$row |
|
|
row of news table |
|
|
integer |
$preview |
|
|
1, displays Proposed instead of Approved |
|
Returns |
string the HTML for the header. |
|
newsbox_show_links |
private string newsbox_show_links( array $row, integer $preview )
|
|
Creates the html for news links
|
Parameter |
|
array |
$row |
|
|
row of news table |
|
|
integer |
$preview |
|
|
1, displays Proposed instead of Approved |
|
Returns |
string the HTML for the links. |
|
size_unit |
private string size_unit( integer $file_size )
|
|
Computes the file size in the correct unit (Mo if size > 1 Mo, Ko otherwise)
|
Parameter |
|
integer |
$file_size |
|
|
file size |
|
Returns |
string file size converted, with prefix (Mega- or Kilo-) appended. |
|
newsbox_show_attachments |
private string newsbox_show_attachments( array $row )
|
|
Creates links to attachements
|
Parameter |
|
array |
$row |
|
|
row in the attachement table. |
|
Returns |
string the HTML code. |
|
newsbox_count_comments |
private string newsbox_count_comments( array $row, string $section, string $topic, integer $year, integer $month, integer $day )
|
|
Creates the HTML for "1 comment in 654"
|
Parameter |
|
|
|
|
|
|
|
integer |
$year |
|
|
year of publication |
|
|
integer |
$month |
|
|
month of publication |
|
|
integer |
$day |
|
|
day of publication |
|
Returns |
string HTML code |
|
linkto_topic |
private string linkto_topic( string $topic )
|
|
Creates a lonk to a topic (withg pretty image)
|
Parameter |
|
string |
$topic |
|
|
name ofthe topic |
|
Returns |
string HTML code for the link. |
|