Detailed Description
Class of the controller.
- Author
- Dodonov A.A.
Definition at line 26 of file gallery_controller.php.
Member Function Documentation
Function attaches file to the gallery.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 46 of file gallery_controller.php.
{
try
{
$FileInputController =
get_package(
'file_input::file_input_controller' ,
'last' , __FILE__ );
if( $FileInputController->UploadedFile )
{
$Security =
get_package(
'security' ,
'last' , __FILE__ );
$GalleryAlgorithms =
get_package(
'gallery::gallery_algorithms' ,
'last' , __FILE__ );
$GalleryId = $Security->get_gp( 'gallery_id' , 'integer' );
$FileId =
get_field( $FileInputController->UploadedFile ,
'id' );
$GalleryAlgorithms->attach_file( $GalleryId , $FileId );
}
}
catch( Exception $e )
{
}
}
Function controls component.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 123 of file gallery_controller.php.
{
try
{
$ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_gallery_attach_file' );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_gallery_detach_file' );
$ContextSet->execute( $Options , $this , __FILE__ );
}
catch( Exception $e )
{
}
}
Function detaches file from the gallery.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 87 of file gallery_controller.php.
{
try
{
$Security =
get_package(
'security' ,
'last' , __FILE__ );
$GalleryId = $Security->get_gp( 'gallery_id' , 'integer' );
$FileId = $Security->get_gp( 'file_id' , 'integer' );
$GalleryAlgorithms =
get_package(
'gallery::gallery_algorithms' ,
'last' , __FILE__ );
$GalleryAlgorithms->detach_file( $GalleryId , $FileId );
}
catch( Exception $e )
{
}
}
The documentation for this class was generated from the following file: