Detailed Description
Working with settings.
- Author
- Dodonov A.A.
Definition at line 26 of file package_settings.php.
Constructor & Destructor Documentation
Constructor.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 54 of file package_settings.php.
{
try
{
}
catch( Exception $e )
{
}
}
Member Function Documentation
| get_package_setting |
( |
|
$PackageName, |
|
|
|
$PackageVersion, |
|
|
|
$FileName, |
|
|
|
$SettingName, |
|
|
|
$DefaultValue = '_throw_exception' |
|
) |
| |
Function loads setting for package.
- Parameters
-
| $PackageName | - Package's name. |
| $PackageVersion | - Package's version. |
| $FileName | - File's name from directory 'conf' for the specified package. |
| $SettingName | - Setting title. |
| $DefaultValue | - Default value for undefined setting. |
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 99 of file package_settings.php.
{
try
{
$S->load_package_settings( $PackageName , $PackageVersion , $FileName );
return( $S->get_setting( $SettingName , $DefaultValue ) );
}
catch( Exception $e )
{
}
}
| set_package_setting |
( |
|
$PackageName, |
|
|
|
$PackageVersion, |
|
|
|
$FileName, |
|
|
|
$SettingName, |
|
|
|
$Value |
|
) |
| |
Function loads setting for package.
- Parameters
-
| $PackageName | - Package's name. |
| $PackageVersion | - Package's version. |
| $FileName | - File's name from directory 'conf' for the specified package. |
| $SettingName | - Setting title. |
| $Value | - Value for setting. |
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 150 of file package_settings.php.
{
try
{
$S->load_package_settings( $PackageName , $PackageVersion , $FileName );
$S->set_setting( $SettingName , $Value );
if( $this->CachedMultyFS === false )
{
$this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
}
$this->CachedMultyFS->file_put_contents( "$PackagePath/conf/$FileName" , $S->get_all_settings() );
}
catch( Exception $e )
{
}
}
Field Documentation
The documentation for this class was generated from the following file: