Detailed Description
View.
- Author
- Dodonov A.A.
Definition at line 26 of file file_input_view.php.
Constructor & Destructor Documentation
Constructor.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 56 of file file_input_view.php.
{
try
{
$this->PageCSS =
get_package(
'page::page_css' ,
'last' , __FILE__ );
$this->PageJS =
get_package(
'page::page_js' ,
'last' , __FILE__ );
$this->Security =
get_package(
'security' ,
'last' , __FILE__ );
}
catch( Exception $e )
{
}
}
Member Function Documentation
Function starts file download.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 198 of file file_input_view.php.
{
try
{
$Fid = $this->Security->get_gp( 'fid' , 'integer' , false );
if( $Fid !== false )
{
$FileInputAlgorithms =
get_package(
'file_input::file_input_algorithms' ,
'last' , __FILE__ );
$File = $FileInputAlgorithms->get_by_id( );
$FileSize = filesize(
get_field( $File ,
'file_path' ) );
$FileName =
get_field( $File ,
'original_file_name' );
$this->file_headers( $FileSize , $FileName );
readfile(
get_field( $File ,
'file_path' ) );
}
}
catch( Exception $e )
{
}
}
| pre_generation |
( |
|
$Options | ) |
|
Function executes before any page generating actions took place.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 122 of file file_input_view.php.
{
try
{
$Path = '{http_host}/'._get_package_relative_path_ex( 'file_input::file_input_view' , '1.0.0' );
$this->PageJS->add_javascript( $Path.'/include/swfupload.js' );
$this->upload_plugins( $Path );
$this->PageJS->add_javascript( $Path.'/include/js/file_input_view.js' );
$this->PageCSS->add_stylesheet( $Path.'/res/css/default.css' );
$Lang->include_strings_js( 'file_input::file_input_view' );
}
catch( Exception $e )
{
}
}
Component's view.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 241 of file file_input_view.php.
{
try
{
if( $Options->get_setting( 'download' , false ) )
{
}
return( '' );
}
catch( Exception $e )
{
}
}
Field Documentation
The documentation for this class was generated from the following file: