ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

system_structure_controller.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 system_structure_controller_1_0_0{
27
38 var $UserAlgorithms = false;
39 var $PageComposer = false;
40 var $Security = false;
41 var $Settings = false;
42 var $CachedFS = false;
43 var $String = false;
44
55 function __construct()
56 {
57 try
58 {
59 $this->UserAlgorithms = get_package( 'user::user_algorithms' , 'last' , __FILE__ );
60 $this->PageComposer = get_package( 'page::page_composer' , 'last' , __FILE__ );
61 $this->Security = get_package( 'security' , 'last' , __FILE__ );
62 $this->Settings = get_package_object( 'settings::settings' , 'last' , __FILE__ );
63 $this->CachedFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
64 $this->String = get_package( 'string' , 'last' , __FILE__ );
65 }
66 catch( Exception $e )
67 {
68 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
69 }
70 }
71
98 function update( $id , $Params , $Options )
99 {
100 try
101 {
102 $Access = get_package( 'system_structure::system_structure_access' , 'last' , __FILE__ );
103 $Access->update(
104 $id , $Params->system_structure_page , $Params->system_structure_root_page ,
105 $Params->system_structure_navigation
106 );
107 }
108 catch( Exception $e )
109 {
110 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
111 }
112 }
113
136 function create( $Params , $Options )
137 {
138 try
139 {
140 $Access = get_package( 'system_structure::system_structure_access' , 'last' , __FILE__ );
141 $Access->create_system_structure(
142 $Params->system_structure_page , $Params->system_structure_root_page ,
143 $Params->system_structure_navigation
144 );
145 }
146 catch( Exception $e )
147 {
148 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
149 }
150 }
151
170 function controller( $Options )
171 {
172 try
173 {
174 $ContextSet = get_package_object( 'gui::context_set' , 'last' , __FILE__ );
175
176 $ContextSet->execute( $Options , $this , __FILE__ );
177 }
178 catch( Exception $e )
179 {
180 $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
181 }
182 }
183 }
184
185 ?>