Kernel::System::Signature - signature lib
All signature functions.
Don't use the constructor directly, use the ObjectManager instead:
my $SignatureObject = $Kernel::OM->Get('Kernel::System::Signature');
add new signatures
my $ID = $SignatureObject->SignatureAdd( Name => 'New Signature', Text => "--\nSome Signature Infos", ContentType => 'text/plain; charset=utf-8', Comment => 'some comment', ValidID => 1, UserID => 123, );
get signatures attributes
my %Signature = $SignatureObject->SignatureGet( ID => 123, );
update signature attributes
$SignatureObject->SignatureUpdate( ID => 123, Name => 'New Signature', Text => "--\nSome Signature Infos", ContentType => 'text/plain; charset=utf-8', Comment => 'some comment', ValidID => 1, UserID => 123, );
get signature list
my %List = $SignatureObject->SignatureList( Valid => 0, # optional, defaults to 1 );
returns:
%List = ( '1' => 'Some Name' ( Filname ), '2' => 'Some Name' ( Filname ), '3' => 'Some Name' ( Filname ), );
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.