ultimix
page_manager_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 
27 
46  function update_packages( $Options )
47  {
48  try
49  {
50  $Security = get_package( 'security' , 'last' , __FILE__ );
51  $PageName = $Security->get_p( 'page_record_id' , 'command' );
52 
53  $PageAccess = get_package( 'page::page_access' , 'last' , __FILE__ );
54  $PageAccess->set_package_appliance( $PageName , $Security->get_p( 'page_packages' , 'unsafe_string' ) );
55  }
56  catch( Exception $e )
57  {
58  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
59  }
60  }
61 
80  function update_permitions( $Options )
81  {
82  try
83  {
84  $Security = get_package( 'security' , 'last' , __FILE__ );
85  $PageName = $Security->get_p( 'page_record_id' , 'command' );
86 
87  $PermitAccess = get_package( 'permit::permit_access' , 'last' , __FILE__ );
88  $Permitions = $Security->get_p( 'page_permitions' , 'unsafe_string' );
89  $PermitAccess->set_permits_for_page( $PageName , $Permitions );
90  }
91  catch( Exception $e )
92  {
93  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
94  }
95  }
96 
115  function controller( $Options )
116  {
117  try
118  {
119  $ContextSet = get_package( 'gui::context_set' , 'last' , __FILE__ );
120 
121  $ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcxs_packages_form' );
122 
123  $ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcxs_permitions_form' );
124 
125  $ContextSet->execute( $Options , $this , __FILE__ );
126  }
127  catch( Exception $e )
128  {
129  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
130  }
131  }
132  }
133 
134 ?>