You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by ch...@apache.org on 2001/12/27 16:44:33 UTC

cvs commit: modperl/Apache Apache.pm

cholet      01/12/27 07:44:33

  Modified:    Apache   Apache.pm
  Log:
  document current_callback()
  
  Revision  Changes    Path
  1.65      +9 -0      modperl/Apache/Apache.pm
  
  Index: Apache.pm
  ===================================================================
  RCS file: /home/cvs/modperl/Apache/Apache.pm,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- Apache.pm	2001/05/01 17:28:34	1.64
  +++ Apache.pm	2001/12/27 15:44:33	1.65
  @@ -776,6 +776,15 @@
   
   	$r->push_handlers( PerlHandler => \&footer);
   
  +=item $r->current_callback
  +
  +Returns the name of the handler currently being run. This method is most
  +useful to PerlDispatchHandlers who wish to only take action for certain phases.
  +
  +	if($r->current_callback eq "PerlLogHandler") {
  +		$r->warn("Logging request");
  +	}
  +
   =back
   
   =head1 SETTING UP THE RESPONSE