X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FClientAPI.pm;h=4ba03f457fbdc8a6dfd6797eea7b5fd654ffb8b9;hb=02d73ef84103d6bdaf49e6a179a0ad46f9719d25;hp=1677fcc5d0d26ca063525e274663f3496f372dad;hpb=bcff37f04c502c60fea1e2824841eb2007a07ccd;p=freeside.git diff --git a/FS/FS/ClientAPI.pm b/FS/FS/ClientAPI.pm index 1677fcc5d..4ba03f457 100644 --- a/FS/FS/ClientAPI.pm +++ b/FS/FS/ClientAPI.pm @@ -2,14 +2,23 @@ package FS::ClientAPI; use strict; use base 'Exporter'; -use vars qw( @EXPORT_OK %handler $domain $DEBUG ); +use vars qw( @EXPORT_OK %handler $domain $DEBUG $me ); @EXPORT_OK = qw( load_clientapi_modules ); $DEBUG = 0; +$me = '[FS::ClientAPI]'; %handler = (); +=head1 NAME + +FS::ClientAPI + +=item load_clientapi_modules + +=cut + sub load_clientapi_modules { #find modules @@ -30,10 +39,15 @@ sub load_clientapi_modules { } +=item dispatch [ name ] + +=cut + sub dispatch { my ( $self, $name ) = ( shift, shift ); $name =~ s(/)(::)g; my $sub = "FS::ClientAPI::$name"; + warn "$me dispatch: calling $sub with args @_\n" if $DEBUG; no strict 'refs'; &{$sub}(@_); }