Detailed Description
This manager helps to manage packages.
- Author
- Dodonov A.A.
Definition at line 26 of file package_manager.php.
Constructor & Destructor Documentation
Constructor.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 66 of file package_manager.php.
{
try
{
$this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
}
catch( Exception $e )
{
}
}
Member Function Documentation
| compile_package_tree_branch |
( |
|
$Branch, |
|
|
|
$Package |
|
) |
| |
Function compiles branch.
- Parameters
-
| $Branch | - Branch code. |
| $Package | - Package. |
- Returns
- HTML code of the tree branch.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 214 of file package_manager.php.
{
try
{
$Title = $Package[ 'package_name' ].'.'.$Package[ 'package_version' ];
$Branch .= $this->CachedMultyFS->get_template( __FILE__ , 'package_item_start.tpl' );
$Branch = str_replace( '{title}' , $Title , $Branch );
$Branch .= $this->CachedMultyFS->get_template( __FILE__ , 'package_item_end.tpl' );
}
catch( Exception $e )
{
}
}
| compile_system_tree_branch |
( |
|
$Branch, |
|
|
|
$Package |
|
) |
| |
Function compiles branch.
- Parameters
-
| $Branch | - Branch code. |
| $Package | - Package. |
- Returns
- HTML code of the tree branch.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 446 of file package_manager.php.
{
try
{
$Title = $Package[ 'package_name' ].'.'.$Package[ 'package_version' ];
$Branch .= $this->CachedMultyFS->get_template( __FILE__ , 'package_system_item_start.tpl' );
$Branch = str_replace( '{title}' , $Title , $Branch );
$Branch .= $this->CachedMultyFS->get_template( __FILE__ , 'package_system_item_end.tpl' );
}
catch( Exception $e )
{
}
}
Controller of the component.
- Parameters
-
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 168 of file package_manager.php.
{
try
{
$ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_delete_package' );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_install_package' );
if( $ContextSet->execute( $Options , $this , __FILE__ ) )
{
return;
}
}
catch( Exception $e )
{
}
}
| delete_package |
( |
|
$Options | ) |
|
Function deletes package.
- Parameters
-
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 131 of file package_manager.php.
{
try
{
$Security =
get_package(
'security' ,
'last' , __FILE__ );
$PackageName = $Security->get_gp( 'package_name' , 'string' );
$PackageVersion = $Security->get_gp( 'package_version' , 'string' );
}
catch( Exception $e )
{
}
}
| install_package |
( |
|
$Options | ) |
|
Function installs package.
- Parameters
-
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 96 of file package_manager.php.
{
try
{
$Security =
get_package(
'security' ,
'last' , __FILE__ );
$PackageAlgoritms =
get_package(
'core::package_algorithms' ,
'last' , __FILE__ );
$MasterPackage = explode( '#' , $Security->get_gp( 'package_selection' , 'string' ) );
$PackageAlgoritms->install_package(
$UploadFileAccess->UploadedFilePath , $MasterPackage[ 0 ] , $MasterPackage[ 1 ]
);
}
catch( Exception $e )
{
}
}
| show_package_tree |
( |
|
$Options | ) |
|
Function draws component.
- Parameters
-
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 298 of file package_manager.php.
{
try
{
$PackageAlgorithms =
get_package(
'core::package_algorithms' ,
'last' , __FILE__ );
$Packages = $PackageAlgorithms->get_packages_tree();
$this->Output = $this->CachedMultyFS->get_template( __FILE__ , 'package_start.tpl' );
foreach( $Packages as $i => $Package )
{
}
$this->Output .= $this->CachedMultyFS->get_template( __FILE__ , 'package_end.tpl' );
}
catch( Exception $e )
{
}
}
| show_package_tree_rec |
( |
|
$Packages | ) |
|
Function draws component.
- Parameters
-
- Returns
- HTML code of the tree branch.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 256 of file package_manager.php.
{
try
{
if( isset( $Packages[ 0 ] ) == false )
{
return( '' );
}
$Branch = $this->CachedMultyFS->get_template( __FILE__ , 'package_branch_start.tpl' );
foreach( $Packages as $i => $Package )
{
}
return( $Branch.$this->CachedMultyFS->get_template( __FILE__ , 'package_branch_end.tpl' ) );
}
catch( Exception $e )
{
}
}
| show_system_tree |
( |
|
$Options | ) |
|
Function draws component.
- Parameters
-
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 534 of file package_manager.php.
{
try
{
$PackageAlgorithms =
get_package(
'core::package_algorithms' ,
'last' , __FILE__ );
$Packages = $PackageAlgorithms->get_packages_tree();
$this->Output = $this->CachedMultyFS->get_template( __FILE__ , 'system_start.tpl' );
foreach( $Packages as $i => $Package )
{
}
$this->Output .= $this->CachedMultyFS->get_template( __FILE__ , 'system_end.tpl' );
}
catch( Exception $e )
{
}
}
| show_system_tree_conf_rec |
( |
|
$ConfigFiles | ) |
|
Function draws config files.
- Parameters
-
| $MetaFiles | - Config files. |
- Returns
- HTML code of the tree branch.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 392 of file package_manager.php.
{
try
{
if( isset( $ConfigFiles[ 0 ] ) == false )
{
return( '' );
}
$Branch = $this->CachedMultyFS->get_template( __FILE__ , 'package_conf_start.tpl' );
foreach( $ConfigFiles as $i => $File )
{
$Title = basename( $File );
$Branch .= $this->CachedMultyFS->get_template( __FILE__ , 'package_conf_item.tpl' );
$Branch = str_replace( '{title}' , $Title , $Branch );
}
return( $Branch.$this->CachedMultyFS->get_template( __FILE__ , 'package_conf_end.tpl' ) );
}
catch( Exception $e )
{
}
}
| show_system_tree_meta_rec |
( |
|
$MetaFiles | ) |
|
Function draws meta files.
- Parameters
-
- Returns
- HTML code of the tree branch.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 342 of file package_manager.php.
{
try
{
if( isset( $MetaFiles[ 0 ] ) == false )
{
return( '' );
}
$Branch = $this->CachedMultyFS->get_template( __FILE__ , 'package_meta_start.tpl' );
foreach( $MetaFiles as $i => $File )
{
$Title = basename( $File );
$Branch .= $this->CachedMultyFS->get_template( __FILE__ , 'package_meta_item.tpl' );
$Branch = str_replace( '{title}' , $Title , $Branch );
}
return( $Branch.$this->CachedMultyFS->get_template( __FILE__ , 'package_meta_end.tpl' ) );
}
catch( Exception $e )
{
}
}
| show_system_tree_rec |
( |
|
$Packages | ) |
|
Function draws component.
- Parameters
-
- Returns
- HTML code of the tree branch.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 492 of file package_manager.php.
{
try
{
if( isset( $Packages[ 0 ] ) == false )
{
return( '' );
}
$Branch = $this->CachedMultyFS->get_template( __FILE__ , 'package_system_start.tpl' );
foreach( $Packages as $i => $Package )
{
}
return( $Branch.$this->CachedMultyFS->get_template( __FILE__ , 'package_system_end.tpl' ) );
}
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 578 of file package_manager.php.
{
try
{
$ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_show_package_tree' );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_show_system_tree' );
if( $ContextSet->execute( $Options , $this , __FILE__ ) )
{
return( $this->Output );
}
}
catch( Exception $e )
{
}
}
Field Documentation
The documentation for this class was generated from the following file: