API::Plesk::Methods - some service functions for a writing our extensions.
Several support functions to generate xml, xml parsing and data control.
See METHODS block.
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
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
Extracts from xml pair of key -- data, where the key is the node name and the value of its contents.
If success return hashref.
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
Odintsov Pavel <nrg[at]cpan.org>
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.