perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@hyperreal.org
Subject cvs commit: modperl/Apache Apache.pm
Date Sat, 05 Jun 1999 03:16:08 GMT
ask         99/06/04 20:16:08

  Modified:    .        Changes
               Apache   Apache.pm
  Log:
  Documented $r->pnotes
  
  Doug, I'm not really sure that what I wrote is right, but I guess
  you'll find time you don't have to add documentation to correct errors
  in the documentation. ;-)
  
  (I should have been to SF this weekend btw, but I got too busy so I
  didn't make it - doh!)
  
  Revision  Changes    Path
  1.302     +2 -0      modperl/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/modperl/Changes,v
  retrieving revision 1.301
  retrieving revision 1.302
  diff -u -r1.301 -r1.302
  --- Changes	1999/06/04 20:42:55	1.301
  +++ Changes	1999/06/05 03:16:06	1.302
  @@ -8,6 +8,8 @@
   
   =item 1.19_01-dev
   
  +Documented $r->pnotes [<ask@valueclick.com>]
  +
   Change "setting auth_name" trace message so we don't get it without
   having enabled a MOD_PERL_TRACE level [Ask Bjoern Hansen
   <ask@valueclick.com>]
  
  
  
  1.26      +12 -1     modperl/Apache/Apache.pm
  
  Index: Apache.pm
  ===================================================================
  RCS file: /home/cvs/modperl/Apache/Apache.pm,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- Apache.pm	1999/03/26 19:59:43	1.25
  +++ Apache.pm	1999/06/05 03:16:08	1.26
  @@ -700,12 +700,23 @@
   modules to pass messages amongst themselves. Generally if you are
   writing handlers in mod_perl you can use Perl variables for this.
   
  -   $r->notes("MY_HANDLER", OK);
  +   $r->notes("MY_HANDLER" => OK);
      $val = $r->notes("MY_HANDLER");
   
   Will return a I<HASH> reference blessed into the I<Apache::Table>
   class when called in a scalar context with no "key" argument. This
   requires I<Apache::Table>.
  +
  +=item $r->pnotes( $key, [$value] )
  +
  +Like $r->notes, but takes any scalar as an value.
  +
  +   $r->pnotes("MY_HANDLER" => [qw(one two)]);
  +   my $val = $r->pnotes("MY_HANDLER");
  +   print $val->[0];     # prints "one"
  +
  +Advantage over just using a Perl variable is that $r->pnotes gets
  +cleaned up after every request.
   
   =item $r->subprocess_env( $key, [$value] )
   
  
  
  

Mime
View raw message