ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

auto_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
26 class auto_view_1_0_0{
27
38 var $PackagePath;
39
50 var $Output;
51
62 function __construct()
63 {
64 try
65 {
66 }
67 catch( Exception $e )
68 {
69 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
70 }
71 }
72
91 function pre_generation( &$Options )
92 {
93 try
94 {
95 $PageJS = get_package( 'page::page_js' , 'last' , __FILE__ );
96 $PackagePath = _get_package_relative_path_ex( 'page::auto_view' , '1.0.0' );
97 $PageJS->add_javascript( "{http_host}/$PackagePath/include/js/auto_view.js" );
98 }
99 catch( Exception $e )
100 {
101 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
102 }
103 }
104
123 function set_path( $thePackagePath )
124 {
125 try
126 {
127 $this->PackagePath = $thePackagePath;
128 }
129 catch( Exception $e )
130 {
131 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
132 }
133 }
134
153 function view( $Options )
154 {
155 try
156 {
157 $ContextSet = get_package_object( 'gui::context_set' , 'last' , $this->PackagePath );
158
159 $ContextSet->execute( $Options , $this , $this->PackagePath );
160
161 return( $this->Output );
162 }
163 catch( Exception $e )
164 {
165 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
166 }
167 }
168 }
169
170 ?>