ultimix
timer_widget.php
Go to the documentation of this file.
1 <?php
2 
3  /*
4  * This source code is a part of the Ultimix Project.
5  * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6  * it's own license wich could be found from the corresponding files or sources.
7  * This source code is provided "as is" without any warranties or garanties.
8  *
9  * Have a nice day!
10  *
11  * @url http://ultimix.sorceforge.net
12  *
13  * @author Alexey "gdever" Dodonov
14  */
15 
27  {
28 
39  var $CachedMultyFS = false;
40  var $Database = false;
41  var $Security = false;
42  var $String = false;
43 
54  function __construct()
55  {
56  try
57  {
58  $this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
59  $this->Database = get_package( 'database' , 'last' , __FILE__ );
60  $this->Security = get_package( 'security' , 'last' , __FILE__ );
61  $this->String = get_package( 'string' , 'last' , __FILE__ );
62  }
63  catch( Exception $e )
64  {
65  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
66  }
67  }
68 
91  function compile_timer( &$Settings )
92  {
93  try
94  {
95  $Code = $this->CachedMultyFS->get_template( __FILE__ , 'timer.tpl' );
96 
97  $Code = $this->String->print_record( $Code , $this->Settings->get_raw_settings() );
98 
99  return( $Code );
100  }
101  catch( Exception $e )
102  {
103  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
104  }
105  }
106  }
107 
108 ?>