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


API-Plesk documentation  | view source Contained in the API-Plesk distribution.

Index


NAME

Top

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

SYNOPSIS

Top

use API::Plesk::Methods;

DESCRIPTION

Top

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

EXPORT

Top

See METHODS block.

METHODS

Top

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

AUTHOR

Top

Odintsov Pavel <nrg[at]cpan.org>

COPYRIGHT AND LICENSE

Top


API-Plesk documentation  | view source Contained in the API-Plesk distribution.