NAME
Kernel::System::SysConfig::ValueType::AgentFrontendQuickAccessItem – System configuration menu item value type backend.
PUBLIC INTERFACE
new()
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::AgentFrontendQuickAccessItem');
SettingEffectiveValueCheck()
Check if provided EffectiveValue matches structure defined in XMLContentParsed.
my %Result = $ValueTypeObject->SettingEffectiveValueCheck(
XMLContentParsed => {
Value => [
{
'Item' => [
{
...
},
],
},
],
},
EffectiveValue => {
...
},
);
Result: %Result = ( EffectiveValue => { # Note for AgentFrontendQuickAccessItem ValueTypes EffectiveValue is not changed. … }, Success => 1, Error => undef, );
AddItem()
Generate HTML for new array/hash item.
my $HTML = $ValueTypeObject->AddItem(
Name => 'SettingName', (required) Name
DefaultItem => { (required) DefaultItem hash
Hash => {
},
},
IDSuffix => '_Array1', (optional) IDSuffix is needed for arrays and hashes.
);
Returns:
$HTML = '<select class="Modernize" id="SettingName" name="SettingName" title="SettingName">
...
</select>';