Kernel::System::SysConfig::ValueType::Password - System configuration password 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::Password');
Extracts the effective value from a XML parsed setting.
my $SettingHTML = $ValueTypeObject->SettingRender( Name => 'SettingName', EffectiveValue => 'Product 6', # (optional) DefaultValue => 'Product 5', # (optional) Class => 'My class' # (optional) Item => [ # (optional) XML parsed item { 'ValueType' => 'Password', 'Content' => 'Secret', }, ], RW => 1, # (optional) Allow editing. Default 0. IsArray => 1, # (optional) Item is part of the array IsHash => 1, # (optional) Item is part of the hash IDSuffix => 1, # (optional) Suffix will be added to the element ID SkipEffectiveValueCheck => 1, # (optional) If enabled, system will not perform effective value check. # Default: 1. );
Returns:
$SettingHTML = '<div class "Field"...</div>';
Generate HTML for new array/hash item.
my $HTML = $ValueTypeObject->AddItem( Name => 'SettingName', (required) Name DefaultItem => { (optional) DefaultItem hash, if available Item => { Content => 'Value', }, }, );
Returns:
$HTML = "<input type='password' id='Setting_ExampleArray' value='Value' name='ExampleArray' class='Entry'/>";
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.