ultimix
package_markup.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 $BlockSettings = false;
40  var $String = false;
41 
52  function __construct()
53  {
54  try
55  {
56  $this->BlockSettings = get_package_object( 'settings::settings' , 'last' , __FILE__ );
57 
58  $this->String = get_package( 'string' , 'last' , __FILE__ );
59  }
60  catch( Exception $e )
61  {
62  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
63  }
64  }
65 
88  function compile_package_dialog( &$Settings )
89  {
90  try
91  {
92  $Settings->set_setting( 'id' , 'package_dialog' );
93  $Settings->set_setting( 'title' , 'package_dialog' );
94  $PackageName = 'core::package_manager';
95  $Settings->set_setting( 'package_name' , $PackageName );
96  $Settings->set_setting( 'show_package_tree' , '1' );
97 
98  return( '{view_dialog:'.$Settings->get_all_settings().'}' );
99  }
100  catch( Exception $e )
101  {
102  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
103  }
104  }
105  }
106 
107 ?>