ultimix
comment_view.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 
38  var $Output;
39 
58  function pre_generation( $Options )
59  {
60  try
61  {
62  $PageJS = get_package( 'page::page_js' , 'last' , __FILE__ );
63  $PackagePath = _get_package_relative_path_ex( 'comment::comment_view' , '1.0.0::1.0.0' );
64  $PageJS->add_javascript( "{http_host}/$PackagePath/include/js/comment_view.js" );
65 
66  $Lang = get_package( 'lang' , 'last' , __FILE__ );
67  $Lang->include_strings_js( 'comment::comment_view' );
68  }
69  catch( Exception $e )
70  {
71  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
72  }
73  }
74 
97  function view( &$Options )
98  {
99  try
100  {
101  $ContextSet = get_package( 'gui::context_set' , 'last' , __FILE__ );
102 
103  $ContextSet->execute( $Options , $this , __FILE__ );
104 
105  return( $this->Output );
106  }
107  catch( Exception $e )
108  {
109  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
110  }
111  }
112  }
113 
114 ?>