package IIb02f8d3064e235967de5c537b3e7ce9b::mod_brandpdf; use strict; use II1b7f5cd35f00c93f234e8e1273dbac2a; use IIef11385558db207cf8b1321ea6156940; use IIa1952cfdd85ba00d0bf33f4dfdc96916; sub cfgEditCtime { 0 } sub createAllForSale { my $class = shift; my ($dlv_class, $sale) = @_; my $prod = $sale->getProduct; return unless $prod->{dlv_brandpdfs} && II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIIIIIIIlllIlII($IIb39071a48a82a07eeb9256f406abebc5::lllIlIIlIIIlIlll{$IIb39071a48a82a07eeb9256f406abebc5::lIIIlIllllIIlIll},1032,$IIb39071a48a82a07eeb9256f406abebc5::lllIlIIlIIIlIlll{$IIb39071a48a82a07eeb9256f406abebc5::llIIllIlIIlIllII})->hasFeature('brandpdf'); for my $bid (split(',', $prod->{dlv_brandpdfs})) { my $brandpdf = II720d6e18aa34327713eb014408fc9144::IllIIIIlIIlllIll($IIb39071a48a82a07eeb9256f406abebc5::llIllIlIllIIIIlI{$II982446f8950cc3dc59e487adba22df54::lIIlIlIIIIIIllII},41,$IIb39071a48a82a07eeb9256f406abebc5::llIllIlIllIIIIlI{$II720d6e18aa34327713eb014408fc9144::llIIIIIIIlllIIII})->get($bid); next unless $brandpdf->stored; $dlv_class->create($sale->getUser, 'brandpdf', $brandpdf->id, $sale->getValidUntilDate, $sale->{id}); } return; } sub save { my $class = shift; my $dlv_object = shift; 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; II720d6e18aa34327713eb014408fc9144::IlllIllllIllIIIl($II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIIlIIIIIIlIIII{$II982446f8950cc3dc59e487adba22df54::IlIIlllIIIllIIII},41,$II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIIlIIIIIIlIIII{$II982446f8950cc3dc59e487adba22df54::llIlIIIIllllIIII})->getOrDummy($dlv_object->{obj_id}); } sub getTitle { my $class = shift; my $dlv_object = shift; II982446f8950cc3dc59e487adba22df54::lIlllIllllIlIIlI($IIb39071a48a82a07eeb9256f406abebc5::IIIllllIllIlIIIl{$II982446f8950cc3dc59e487adba22df54::llIIIllIlllIllII},41,$IIb39071a48a82a07eeb9256f406abebc5::IIIllllIllIlIIIl{$IIb39071a48a82a07eeb9256f406abebc5::llIIIIIIlIllIlIl})->getOrDummy($dlv_object->{obj_id})->{title}; } sub getResourceUrl { my $class = shift; my ($dlv_object, $sale, $resource_number) = @_; IIb39071a48a82a07eeb9256f406abebc5::IIllIIIIIIlIIlII($II8dae0e141ee45f5daba6a74e4a7c3b6f::lIlllIIIlIlIlIII{$II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIllIIlIllIlIIl},130,$II8dae0e141ee45f5daba6a74e4a7c3b6f::lIlllIIIlIlIlIII{$II8dae0e141ee45f5daba6a74e4a7c3b6f::IlllIllIIIIIllIl})->true(IIb39071a48a82a07eeb9256f406abebc5::IIIIIIIllIlIIlll($II982446f8950cc3dc59e487adba22df54::llIIlIllIIIIIIlI{$II982446f8950cc3dc59e487adba22df54::IlIIlllIIIllIIII},1032,$II982446f8950cc3dc59e487adba22df54::llIIlIllIIIIIIlI{$II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIlIlIIIIllIIIl})->hasFeature('brandpdf'), $sale->message('order.dlv.link.incorrect')); my $brandpdf = $dlv_object->getStoreObject; $brandpdf->prepareHtml($sale); $brandpdf->getUrl; } 1; 