ultimix
pmsg_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 $PageCSS = false;
39 
54  function __construct()
55  {
56  try
57  {
58  $this->PageCSS = get_package( 'page::page_css' , 'last' , __FILE__ );
59  }
60  catch( Exception $e )
61  {
62  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
63  }
64  }
65 
76  var $Output;
77 
96  function pre_generation( $Options )
97  {
98  try
99  {
100  $Path = _get_package_relative_path_ex( 'pmsg::pmsg_view' , '1.0.0' );
101 
102  $this->PageCSS->add_stylesheet( "{http_host}/$Path/res/css/pmsg.css" , true );
103 
104  $this->PageCSS->add_javascript( "{http_host}/$Path/include/js/pmsg.js" );
105  }
106  catch( Exception $e )
107  {
108  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
109  }
110  }
111 
127  {
128  try
129  {
130  $CachedFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
131  $String = get_package( 'string' , 'last' , __FILE__ );
132  $SecurityParser = get_package( 'security::security_parser' , 'last' , __FILE__ );
133 
134  $Form = $CachedFS->get_template( __FILE__ , 'feedback.tpl' );
135 
136  $Record = $SecurityParser->parse_http_parameters( 'message:string,allow_not_set' );
137 
138  $Form = $String->print_record( $Form , $Record );
139 
140  $this->Output = $Form;
141  }
142  catch( Exception $e )
143  {
144  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
145  }
146  }
147 
170  function view( $Options )
171  {
172  try
173  {
174  $ContextSet = get_package( 'gui::context_set' , 'last' , __FILE__ );
175 
176  $ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_list_outgoing' );
177 
178  $ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_list_deleted' );
179 
180  $ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_feedback' );
181 
182  $ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_solid_control' );
183 
184  $ContextSet->execute( $Options , $this , __FILE__ );
185 
186  return( $this->Output );
187  }
188  catch( Exception $e )
189  {
190  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
191  }
192  }
193  }
194 
195 ?>