Revision 413 (by ahitrov, 2014/02/11 22:47:35) |
Payment libs and sql-table additions
|
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::SQL::CouponsTable
webshop::SQL::CouponLinkTable
webshop::Address
webshop::Basket
webshop::Order
webshop::Delivery
webshop::Payment
webshop::Coupon
webshop::Country
webshop::Area
webshop::Town
webshop::DeliverySection
webshop::PaymentSection
webshop::RegionSection
webshop::CouponItemLink
webshop::OrderCouponLink
));
sub init {
push @{ $state->{'available_documents'} }, qw(webshop::Basket webshop::Order webshop::Delivery webshop::Payment webshop::Coupon webshop::Country webshop::Area webshop::Town);
push @{ $state->{'available_sections'} }, qw(webshop::DeliverySection webshop::PaymentSection webshop::RegionSection);
push @{ $state->{'available_links'} }, qw(webshop::CouponItemLink webshop::OrderCouponLink);
0;
}
1;