Detailed Description
Working with private messages.
- Author
- Dodonov A.A.
Definition at line 26 of file pmsg_controller.php.
Constructor & Destructor Documentation
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 )
{
}
}
Member Function Documentation
Function controls component.
- Parameters
-
- 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 )
{
}
}
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 )
{
}
}
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 )
{
}
}
Field Documentation
The documentation for this class was generated from the following file: