r626 - packages/libcgi-xmlapplication-perl/trunk
Luk Claes
luk-guest@costa.debian.org
Tue, 18 Jan 2005 16:20:15 +0100
Author: luk-guest
Date: 2005-01-18 16:20:14 +0100 (Tue, 18 Jan 2005)
New Revision: 626
Modified:
packages/libcgi-xmlapplication-perl/trunk/XMLApplication.pm
Log:
Some more minuses
Modified: packages/libcgi-xmlapplication-perl/trunk/XMLApplication.pm
===================================================================
--- packages/libcgi-xmlapplication-perl/trunk/XMLApplication.pm 2005-01-18 15:06:54 UTC (rev 625)
+++ packages/libcgi-xmlapplication-perl/trunk/XMLApplication.pm 2005-01-18 15:20:14 UTC (rev 626)
@@ -460,19 +460,19 @@
=head1 NAME
-CGI::XMLApplication -- Object Oriented Interface for CGI Script Applications
+CGI::XMLApplication \-\- Object Oriented Interface for CGI Script Applications
=head1 SYNOPSIS
use CGI::XMLApplication;
$script = new CGI::XMLApplication;
- $script->setStylesheetPath( "the/path/to/the/stylesheets" );
+ $script\->setStylesheetPath( "the/path/to/the/stylesheets" );
# either this for simple scripts
- $script->run();
+ $script\->run();
# or if you need more control ...
- $script->run(%context_hash); # or a context object
+ $script\->run(%context_hash); # or a context object
=head1 DESCRIPTION
@@ -674,7 +674,7 @@
=item method registerEvents
-This method is called by the class constructor - namely
+This method is called by the class constructor \- namely
CGI::XMLApplication's B<new()> function . Each application should
register the events it likes to handle with this function. It should
return an array of eventnames such as eg. 'remove' or 'store'. This
@@ -790,7 +790,7 @@
By default CGI::XMLApplication does not test for other events if it
already found one. The most significant event is the first name of an
-event found in the query string - all other names are simply ignored.
+event found in the query string \- all other names are simply ignored.
One may change this behaviour by overriding the B<testEvent()>
function.
@@ -844,9 +844,9 @@
# event_init is an implicit event
sub event_init {
my ( $self, $context ) = @_;
- if ( not ( defined $self->param( $paraname ) && length $self->param( $paramname ) ) ){
+ if ( not ( defined $self\->param( $paraname ) && length $self\->param( $paramname ) ) ){
# the parameter is not correctly filled
- $self->sendEvent( 'missing' );
+ $self\->sendEvent( 'missing' );
}
else {
@@ -864,7 +864,7 @@
... your error handling code goes ...
- return -4 if $panic; # just for illustration
+ return \-4 if $panic; # just for illustration
return 0;
}
@@ -983,7 +983,7 @@
getDOM() should return the application data as
XML-DOM. CGI::XMLApplication is quite lax if this function does not
-return anything - its simply assumed that an empty DOM should be
+return anything \- its simply assumed that an empty DOM should be
rendered. In this case a dummy root element is created to avoid error
messages from XML::LibXSLT.
@@ -1077,7 +1077,7 @@
event_default {
my $self = shift;
# avoid serialization call
- $self->skipSerialization( 1 ); # use 0 to unset
+ $self\->skipSerialization( 1 ); # use 0 to unset
# now you can directly print to the client, but don't forget the
# headers.
@@ -1187,7 +1187,7 @@
This method is for telling the application where the stylesheets can
be found. If you keep your stylesheets in the same directory as your
-script -- IMHO a bad idea -- you might leave this untouched.
+script \-\- IMHO a bad idea \-\- you might leave this untouched.
=item function getStylesheetPath