Kernel::System::SysConfig::ValueType::File - System configuration file value type backed.
Create an object. Do not use it directly, instead use:
use Kernel::System::ObjectManager; local $Kernel::OM = Kernel::System::ObjectManager->new(); my $ValueTypeObject = $Kernel::OM->Get('Kernel::System::SysConfig::ValueType::File');
Check if provided EffectiveValue matches structure defined in XMLContentParsed.
my %Result = $ValueTypeObject->SettingEffectiveValueCheck( XMLContentParsed => { Value => [ { 'Item' => [ { 'Content' => '/etc/hosts', 'ValueType' => 'File', }, ], }, ], }, EffectiveValue => '/etc/hosts', );
Result: %Result = ( EffectiveValue => '/etc/hosts', # Note for File ValueTypes EffectiveValue is not changed. Success => 1, Error => undef, );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.