package IIb02f8d3064e235967de5c537b3e7ce9b::mod_insignia; use strict; use II535843728d21206bdd21a2a084373080; use IIfb02f35aa1c06f4945d28bf1cbd29315; sub cfgEditCtime { 0 } sub createAllForSale { my $class = shift; my ($dlv_class, $sale) = @_; my $prod = $sale->getProduct; return unless $prod->{dlv_insignia} && $prod->getSys->getAdmin->getPrivs->{master_users_insignia}; for my $insignia_id (split(',', $prod->{dlv_insignia})) { my $insignia = II720d6e18aa34327713eb014408fc9144::IIllIIIlIIllllII($II8dae0e141ee45f5daba6a74e4a7c3b6f::lIlllIIIlIlIlIII{$II720d6e18aa34327713eb014408fc9144::lIIIIllIIllIIIlI},32,$II8dae0e141ee45f5daba6a74e4a7c3b6f::lIlllIIIlIlIlIII{$II982446f8950cc3dc59e487adba22df54::lllIIlIlIIIIlIlI})->get($insignia_id); next unless $insignia->stored; $dlv_class->create($sale->getUser, 'insignia', $insignia->id, $sale->getValidUntilDate, $sale->{id}); } return; } sub save { my $class = shift; my $dlv_object = shift; $dlv_object->{obj_title} = $dlv_object->getStoreObject->{fulltitle}; $dlv_object->getUser->set(adminlink_html => undef, adminlink_tstamp => undef)->save; return; } sub delete { my $class = shift; my $dlv_object = shift; return; } sub activateDlv { my $class = shift; my $dlv_object = shift; return; } sub deactivateDlv { my $class = shift; my $dlv_object = shift; return; } sub deleteDlv { my $class = shift; my $dlv_object = shift; return; } sub getStoreObject { my $class = shift; my $dlv_object = shift; II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIIIIIIIlllIlII($IIb39071a48a82a07eeb9256f406abebc5::lIIIIlIlIlllIIlI{$II982446f8950cc3dc59e487adba22df54::IIlIllllIlIIllIl},32,$IIb39071a48a82a07eeb9256f406abebc5::lIIIIlIlIlllIIlI{$II720d6e18aa34327713eb014408fc9144::lIIlllIllIlIllll})->getOrDummy($dlv_object->{obj_id}); } sub getTitle { my $class = shift; my $dlv_object = shift; II720d6e18aa34327713eb014408fc9144::llllllIlIIIIllll($II720d6e18aa34327713eb014408fc9144::llIlIIIlIlIlIlIl{$II8dae0e141ee45f5daba6a74e4a7c3b6f::IIIIlIIlIIIIIIIl},32,$II720d6e18aa34327713eb014408fc9144::llIlIIIlIlIlIlIl{$IIb39071a48a82a07eeb9256f406abebc5::llIIllIlIIlIllII})->getOrDummy($dlv_object->{obj_id})->{fulltitle}; } 1; 