From 3e8bc1837343e34bac7106be458add3982fb77da Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 14 Oct 2006 21:13:30 +0000 Subject: Initial import --- lib/Net/Plesk/Method/client_add.pm | 108 +++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 lib/Net/Plesk/Method/client_add.pm (limited to 'lib/Net/Plesk/Method/client_add.pm') diff --git a/lib/Net/Plesk/Method/client_add.pm b/lib/Net/Plesk/Method/client_add.pm new file mode 100644 index 0000000..6cda065 --- /dev/null +++ b/lib/Net/Plesk/Method/client_add.pm @@ -0,0 +1,108 @@ +package Net::Plesk::Method::client_add; + +use strict; + +use vars qw( $VERSION @ISA $AUTOLOAD $DEBUG ); + +@ISA = qw ( Net::Plesk::Method ); +$VERSION = '0.01'; + +$DEBUG = 0; + +=head1 NAME + +Net::Plesk::Method::client_add - Perl extension for Plesk XML Remote API client addition + +=head1 SYNOPSIS + + use Net::Plesk::Method::client_add + + my $p = new Net::Plesk::client_add ( $clientID, 'client.com' ); + +=head1 DESCRIPTION + +This module implements an interface to construct a request for a client +addition using SWSOFT's Plesk. + +=head1 METHODS + +=over 4 + +=item init args ... + +Initializes a Plesk client_add object. The I and I +options are required. + +=cut + +sub init { + my ($self, $pname, $login, $passwd, $phone, $fax, $email, $address, $city, + $state, $pcode, $country) = @_; + $$self = join ( "\n", ( + '', + '', + '', + '', + $self->encode($pname), + '', + '', + $self->encode($login), + '', + '', + $self->encode($passwd), + '', + '', + $self->encode($phone), + '', + '', + $self->encode($fax), + '', + '', + $self->encode($email), + '', + '
', + $self->encode($address), + '
', + '', + $self->encode($city), + '', + '', + $self->encode($state), + '', + '', + $self->encode($pcode), + '', + '', + $self->encode($country), + '', + '
', + '
', + '
', + )); +} + +=back + +=head1 BUGS + + Creepy crawlies. + +=head1 SEE ALSO + +SWSOFT Plesk Remote API documentation (1.4.0.0 or later) + +=head1 AUTHOR + +Jeff Finucane Ejeff@cmh.netE + +=head1 COPYRIGHT AND LICENSE + +Copyright (C) 2006 Jeff Finucane + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut + +1; + -- cgit v1.2.1