package webshop::Init; use strict; use warnings 'all'; use Contenido::Globals; use webshop::Apache; use webshop::Keeper; # загрузка всех необходимых плагину классов # webshop::SQL::SomeTable # webshop::SomeClass Contenido::Init::load_classes(qw( webshop::SQL::Basket webshop::SQL::Order webshop::Address webshop::Basket webshop::Order webshop::Delivery webshop::Country webshop::Area webshop::Town webshop::DeliverySection webshop::RegionSection )); sub init { push @{ $state->{'available_documents'} }, qw(webshop::Basket webshop::Order webshop::Delivery webshop::Country webshop::Area webshop::Town); push @{ $state->{'available_sections'} }, qw(webshop::DeliverySection webshop::RegionSection); 0; } 1;