ultimix
page_manager_controller_1_0_0 Class Reference

Public Member Functions

 update_packages ($Options)
 update_permitions ($Options)
 controller ($Options)

Detailed Description

This manager helps to create pages.

Author
Dodonov A.A.

Definition at line 26 of file page_manager_controller.php.

Member Function Documentation

controller (   $Options)

Function controls component.

Parameters
$Options- Settings.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 115 of file page_manager_controller.php.

{
try
{
$ContextSet = get_package( 'gui::context_set' , 'last' , __FILE__ );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcxs_packages_form' );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcxs_permitions_form' );
$ContextSet->execute( $Options , $this , __FILE__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}
update_packages (   $Options)

Function edits record.

Parameters
$Options- Settings.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 46 of file page_manager_controller.php.

{
try
{
$Security = get_package( 'security' , 'last' , __FILE__ );
$PageName = $Security->get_p( 'page_record_id' , 'command' );
$PageAccess = get_package( 'page::page_access' , 'last' , __FILE__ );
$PageAccess->set_package_appliance( $PageName , $Security->get_p( 'page_packages' , 'unsafe_string' ) );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}
update_permitions (   $Options)

Function edits record.

Parameters
$Options- Settings.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 80 of file page_manager_controller.php.

{
try
{
$Security = get_package( 'security' , 'last' , __FILE__ );
$PageName = $Security->get_p( 'page_record_id' , 'command' );
$PermitAccess = get_package( 'permit::permit_access' , 'last' , __FILE__ );
$Permitions = $Security->get_p( 'page_permitions' , 'unsafe_string' );
$PermitAccess->set_permits_for_page( $PageName , $Permitions );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

The documentation for this class was generated from the following file: