Net::Plesk::Method::domain_del - Perl extension for Plesk XML Remote API domain deletion


Net-Plesk documentation Contained in the Net-Plesk distribution.

Index


Code Index:

NAME

Top

Net::Plesk::Method::domain_del - Perl extension for Plesk XML Remote API domain deletion

SYNOPSIS

Top

  use Net::Plesk::Method::domain_del

  my $p = new Net::Plesk::Method::domain_del ( 'domain.com' );

DESCRIPTION

Top

This module implements an interface to construct a request for a domain addition using SWSOFT's Plesk.

METHODS

Top

init args ...

Initializes a Plesk domain_del object. The domain option is required.

BUGS

Top

  Creepy crawlies.

SEE ALSO

Top

SWSOFT Plesk Remote API documentation (1.4.0.0 or later)

AUTHOR

Top

Jeff Finucane <jeff@cmh.net>

COPYRIGHT AND LICENSE

Top


Net-Plesk documentation Contained in the Net-Plesk distribution.
package Net::Plesk::Method::domain_del;

use strict;

use vars qw( $VERSION @ISA $AUTOLOAD $DEBUG );

@ISA = qw( Net::Plesk::Method );
$VERSION = '0.01';

$DEBUG = 0;

sub init {
  my ($self, $domain) = @_;
  $$self = join ( "\n", (
	            '<domain>',
	            '<del>',
	            '<filter>',
	            '<domain_name>',
	            $self->encode($domain),
	            '</domain_name>',
	            '</filter>',
	            '</del>',
	            '</domain>',
	          ));
}

1;