ultimix

- Main Page
- Data Structures
- Files
- Examples

- Data Structures
- Data Structure Index
- Data Fields

Public Member Functions | Data Fields
pmsg_controller_1_0_0 Class Reference

## Public Member Functions
| __construct ()
| set_read ()
| send_feedback ()
| controller ($Options)

## Data Fields
| $MessageAccess = false
| $Security = false

## Detailed Description

Working with private messages.

Author
  Dodonov A.A.

Definition at line 26 of file pmsg_controller.php.

## Constructor & Destructor Documentation

__construct | ( |  | ) |

Constructor.

Author
  Dodonov A.A.

Definition at line 51 of file pmsg_controller.php.

{
try
{
$this->MessageAccess = get_package( 'pmsg::pmsg_access' , 'last' , __FILE__ );
$this->Security = get_package( 'security' , 'last' , __FILE__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

## 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 150 of file pmsg_controller.php.

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

send_feedback | ( |  | ) |

Function sends feedback.

Exceptions

  Exception | - An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 107 of file pmsg_controller.php.

{
try
{
$SecurityParser = get_package( 'security::security_parser' , 'last' , __FILE__ );
$Captcha = get_package( 'captcha' , 'last' , __FILE__ );
if( $Captcha->validate_captcha( $this->Security->get_p( 'captcha' , 'command' ) ) )
{
$Params = $SecurityParser->parse_http_parameters( 'message:string' );
$this->MessageAccess->create(
'guest' , $this->MessageAccess->get_feedback_admin() , $Params->message
);
$this->Security->reset_p( 'message' , '' );
}
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

set_read | ( |  | ) |

Setting 'read' mark.

Exceptions

  Exception | - An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 78 of file pmsg_controller.php.

{
try
{
$id = $this->Security->get_gp( 'id' , 'integer' , 0 );
$PmsgAlgorithms = get_package( 'pmsg::pmsg_algorithms' , 'last' , __FILE__ );
$PmsgAlgorithms->set_read( $id );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

## Field Documentation

$MessageAccess = false

Cached objects.

Author
  Dodonov A.A.

Definition at line 38 of file pmsg_controller.php.

$Security = false

Definition at line 39 of file pmsg_controller.php.

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

- packages/pmsg/packages/pmsg_controller/pmsg_controller.php