root/dev/common/includes/class.clock.php @ 419

Revision 419, 344 bytes (checked in by kovell, 12 years ago)

Fixes: some php4 errors fixed. The great commenting project continues.

Line 
1<?php
2
3//! A simple clock implementation
4class Clock
5{
6        //! Generate html for a clock from the template file.
7       
8        //! \return html generated frm the clock template.
9        function generate()
10    {
11        global $smarty;
12
13        $smarty->assign('clocktime', gmdate('H:i'));
14        return $smarty->fetch(get_tpl('clock'));
15    }
16}
17?>
Note: See TracBrowser for help on using the browser.