Detailed Description
Class processes forms.
- Author
- Dodonov A.A.
Definition at line 26 of file forms.php.
Constructor & Destructor Documentation
Constructor.
- Author
- Dodonov A.A.
Definition at line 66 of file forms.php.
{
try
{
$this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
$this->Mail =
get_package(
'mail' ,
'last' , __FILE__ );
$this->PackageSettings =
get_package_object(
'settings::package_settings' ,
'last' , __FILE__ );
$this->String =
get_package(
'string' ,
'last' , __FILE__ );
$this->SecurityUtilities =
get_package(
'security::security_utilities' ,
'last' , __FILE__ );
}
catch( Exception $e )
{
}
}
Member Function Documentation
| compile_form |
( |
& |
$Settings | ) |
|
Function processes macro 'form'.
- Parameters
-
| $Settings | - String to process. |
- Returns
- Code.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 216 of file forms.php.
{
try
{
return( $this->Output );
}
catch( Exception $e )
{
}
}
Function controls component.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 248 of file forms.php.
{
try
{
$ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_send_form' );
$ContextSet->execute( $Options , $this , __FILE__ );
}
catch( Exception $e )
{
}
}
Function draws component.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 180 of file forms.php.
{
try
{
$FormFile = $Options->get_setting( 'form_template' );
$this->Output = $this->CachedMultyFS->get_template( __FILE__ , "$FormFile.tpl" );
}
catch( Exception $e )
{
}
}
Function processes form.
- Parameters
-
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 142 of file forms.php.
{
try
{
$EmailFile = $Options->get_setting( 'email_template' );
$Email = $this->CachedMultyFS->get_template( __FILE__ , "$EmailFile.tpl" );
$Data = $this->SecurityUtilities->get_all_posted_data();
$Email = $this->String->print_record( $Email , $Data );
$this->send_email( $Email );
}
catch( Exception $e )
{
}
}
Function draws component.
- Parameters
-
- Returns
- HTML code of the компонента.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 286 of file forms.php.
{
try
{
$ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_draw_form' );
$ContextSet->execute( $Options , $this , __FILE__ );
return( $this->Output );
}
catch( Exception $e )
{
}
}
Field Documentation
Cached objects.
- Author
- Dodonov A.A.
Definition at line 50 of file forms.php.
Display method's result.
- Author
- Dodonov A.A.
Definition at line 38 of file forms.php.
| $SecurityUtilities = false |
The documentation for this class was generated from the following file: