package LedgerSMB::RESTXML::Document::Base; use strict; use warnings; use XML::Twig; use LedgerSMB::Log; use Carp; sub handle_post { my ( $self, $args ) = @_; return $args->{handler}->unsupported('the POST method is not implemented.'); } sub handle_put { my ( $self, $args ) = @_; return $self->{handler}->unsupported('the PUT method is not implemented.'); } sub handle_delete { my ( $self, $args ) = @_; return $self->{handler} ->unsupported('the DELETE method is not implemented.'); } sub handle_get { my ( $self, $args ) = @_; return $self->{handler}->unsupported('the GET method is not implemented.'); } =head3 hash_to_twig Convinenve function to convert a hashref to a XML::Twig structure. passed a hashref, required arguments: hash - the hash to convert name - the name of the root element. optional arguments: sort - by default, on set to 0 to disable. toggles whether or not hash keys are sorted in the resulting xml node created. Disabling this may save some performance if converting a lot of nodes at once. =cut sub hash_to_twig { my ( $self, $args ) = @_; my $hash = $args->{hash} || croak "Need a hash to convert to use hash_to_twig"; my $name = $args->{name} || croak "Need a root element name to use hash_to_twig"; my @keyorder = keys %$hash; @keyorder = sort @keyorder unless defined( $args->{sort} ) and $args->{sort} == 0; return XML::Twig::Elt->new( $name, $args->{root_attr} || {}, map { XML::Twig::Elt->new( $_, { '#CDATA' => 1 }, $hash->{$_} ) } @keyorder ); } 1; ep'>log msg
path: root/tags/a8/7f
diff options
context:
space:
mode:
Diffstat (limited to 'tags/a8/7f')
-rw-r--r--tags/a8/7f/1894723206.9584986.1623608238066@mail.yahoo.com/debian0
-rw-r--r--tags/a8/7f/1894723206.9584986.1623608238066@mail.yahoo.com/replied0
-rw-r--r--tags/a8/7f/20150503075531.27854.340@bastian.jones.dk/debian0
-rw-r--r--tags/a8/7f/20150503075531.27854.340@bastian.jones.dk/jones0
-rw-r--r--tags/a8/7f/20150503075531.27854.340@bastian.jones.dk/sent0
-rw-r--r--tags/a8/7f/20150503075531.27854.340@bastian.jones.dk/signed0
-rw-r--r--tags/a8/7f/20200113150001.C95FA1CD3D3@lxp5.free-owl.de/sys0
-rw-r--r--tags/a8/7f/20200113150001.C95FA1CD3D3@lxp5.free-owl.de/unread0
-rw-r--r--tags/a8/7f/4DE93450.5080205@weisser-ol.de/debian0
-rw-r--r--tags/a8/7f/57339E03.7030707@debian.org/debian0
-rw-r--r--tags/a8/7f/87zk3npnn7.fsf_-_@deep-thought.43-1.org/attachment0
-rw-r--r--tags/a8/7f/87zk3npnn7.fsf_-_@deep-thought.43-1.org/debian0
-rw-r--r--tags/a8/7f/E1mEs8U-00018c-0w@usper.debian.org/debian0
-rw-r--r--tags/a8/7f/E1mEs8U-00018c-0w@usper.debian.org/inbox0
-rw-r--r--tags/a8/7f/E1mEs8U-00018c-0w@usper.debian.org/killed0
-rw-r--r--tags/a8/7f/E1mEs8U-00018c-0w@usper.debian.org/unread0
-rw-r--r--tags/a8/7f/handler.s.C.13847582513297.transcript@bugs.debian.org/debian0
-rw-r--r--tags/a8/7f/handler.s.C.13847582513297.transcript@bugs.debian.org/unread0
-rw-r--r--tags/a8/7f/mailman.22.1595142002.16030.pkg-javascript-devel@alioth-lists.debian.net/inbox0
-rw-r--r--tags/a8/7f/mailman.22.1595142002.16030.pkg-javascript-devel@alioth-lists.debian.net/killed0
-rw-r--r--tags/a8/7f/mailman.22.1595142002.16030.pkg-javascript-devel@alioth-lists.debian.net/unread0
-rw-r--r--tags/a8/7f/qhcn5t%247151%241@blaine.gmane.org/debian0
-rw-r--r--tags/a8/7f/qhcn5t%247151%241@blaine.gmane.org/unread0
23 files changed, 0 insertions, 0 deletions