ultimix
page_composer_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 
31 
42  var $PageMarkupUtilities = false;
43 
58  function __construct()
59  {
60  try
61  {
62  $this->PageMarkupUtilities = get_package_object(
63  'page::page_markup::page_markup_utilities' , 'last' , __FILE__
64  );
65  }
66  catch( Exception $e )
67  {
68  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
69  }
70  }
71 
94  function view( $Options )
95  {
96  try
97  {
98  if( $Options->get_setting( 'direct_view' , false ) )
99  {
100  $Options->load_from_http();
101 
102  return( $this->PageMarkupUtilities->direct_view( $Options ) );
103  }
104  if( $Options->get_setting( 'direct_controller' , false ) )
105  {
106  $Options->load_from_http();
107 
108  $this->PageMarkupUtilities->direct_controller( $Options );
109 
110  return;
111  }
112  }
113  catch( Exception $e )
114  {
115  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
116  }
117  }
118  }
119 
120 ?>