ultimix

- Main Page
- Data Structures
- Files
- Examples

- Data Structures
- Data Structure Index
- Data Fields

Public Member Functions
ownership_controller_1_0_0 Class Reference

## Public Member Functions
| __construct ()
| pre_generation ()
| register_owners ($Options=false)
| controller ($Options)

## Detailed Description

This class controls component.

Author
  Dodonov A.A.

Definition at line 26 of file ownership_controller.php.

## Constructor & Destructor Documentation

__construct | ( |  | ) |

Constructor.

Author
  Dodonov A.A.

Definition at line 38 of file ownership_controller.php.

{
try
{
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

## Member Function Documentation

controller | ( |  | $Options | ) |

Function controlls component.

Parameters

  $Options | - Settings.

Exceptions

  Exception | - An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 132 of file ownership_controller.php.

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

pre_generation | ( |  | ) |

Function executes before any page generating actions took place.

Parameters

  $Options | - Settings.

Exceptions

  Exception | An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 67 of file ownership_controller.php.

{
try
{
$this->register_owners();
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

register_owners | ( |  | $Options = `false` | ) |

Function registers owners.

Parameters

  $Options | - Settings.

Exceptions

  Exception | - An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 97 of file ownership_controller.php.

{
try
{
$OwnershipAccess = get_package( 'permit::ownership::ownership_access' , 'last' , __FILE__ );
$UserAlgorithms = get_package( 'user::user_algorithms' , 'last' , __FILE__ );
$User = $UserAlgorithms->get_user();
$OwnershipAccess->register_owner( get_field( $User , 'id' ) , 'user' );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

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

- packages/permit/packages/ownership/packages/ownership_controller/ownership_controller.php