Odintsov Pavel > API-Plesk-1.09 > API::Plesk::Methods

Download:
API-Plesk-1.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 1.03   Source  

NAME ^

API::Plesk::Methods - some service functions for a writing our extensions.

SYNOPSIS ^

use API::Plesk::Methods;

DESCRIPTION ^

Several support functions to generate xml, xml parsing and data control.

EXPORT ^

See METHODS block.

METHODS ^

construct_request_xml($type, $operation, @addition_blocks)

Construct xml query: <$type><$operation>@addition_blocks</$operation></$type>

 $type -- client-template, client
 $operation -- type of operation: ADD, GET, SET, DEL
 @addition_blocks -- other xml blocks
create_filter(%params)

Construct xml filter.

Params: login_field_name => 'value' -- filter by "..." value.

  all              => 1      - select all accounts.
  login_field_name => 'name' - select account with a given login_field_name.
  id               => 123    - select account with a given id 
xml_extract_values($data)

Extracts from xml pair of key -- data, where the key is the node name and the value of its contents.

If success return hashref.

abstract_pasrser($operation_type, $xml_from_server, $required_data)

Provides parsing $xml_from_server previously extracting content block <$operation_type>. Also performed to check if the keys, a list of which appears in arrref $required_data

SEE ALSO ^

Blank.

AUTHOR ^

Odintsov Pavel <nrg[at]cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008 by NRG

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: