Kernel::System::GeneralCatalog::PreferencesDB - some preferences functions for general catalog
some preferences functions for general catalog
new()
create an object
use Kernel::Config;
use Kernel::System::Encode;
use Kernel::System::Log;
use Kernel::System::Main;
use Kernel::System::DB;
use Kernel::System::GeneralCatalog::PreferencesDB;
my $ConfigObject = Kernel::Config->new();
my $EncodeObject = Kernel::System::Encode->new(
ConfigObject => $ConfigObject,
);
my $LogObject = Kernel::System::Log->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
);
my $MainObject = Kernel::System::Main->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
LogObject => $LogObject,
);
my $DBObject = Kernel::System::DB->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
LogObject => $LogObject,
MainObject => $MainObject,
);
my $GroupObject = Kernel::System::GeneralCatalog::PreferencesDB->new(
ConfigObject => $ConfigObject,
LogObject => $LogObject,
DBObject => $DBObject,
);
GeneralCatalogPreferencesSet()
Set preferences for an item
$PreferencesObject->GeneralCatalogPreferencesSet(
ItemID => 1234,
Key => 'Functionality',
Value => 'operational',
);
GeneralCatalogPreferencesGet()
Get all Preferences for an item
my %Preferences = $PreferencesObject->GeneralCatalogPreferencesGet(
ItemID => 123,
);
This software is part of the OTRS project (http://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (AGPL). If you did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
$Revision: 1.1 $ $Date: 2009-10-07 13:18:05 $