/[cvs]/nfo/php/libs/org.netfrag.flib/Site/Request.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/Site/Request.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by joko, Fri Dec 13 09:18:48 2002 UTC revision 1.5 by joko, Thu Dec 19 16:24:52 2002 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    -------------------------------------------------------------------------  //    -------------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.5  2002/12/19 16:24:52  joko
7    //    + debugging
8    //
9  //    Revision 1.4  2002/12/13 09:18:48  joko  //    Revision 1.4  2002/12/13 09:18:48  joko
10  //    + new mechanisms for handling the request: split up into _read and _parse  //    + new mechanisms for handling the request: split up into _read and _parse
11  //    + introduced caching-mechanism  //    + introduced caching-mechanism
# Line 63  class Site_Request { Line 66  class Site_Request {
66                
67      $this->site->log( get_class($this) . "->_read( identifier $identifier )", LOG_DEBUG );      $this->site->log( get_class($this) . "->_read( identifier $identifier )", LOG_DEBUG );
68    
69      // remember arguments in object      // remember raw arguments in object
70        $this->raw[identifier] = $identifier;        $this->raw[identifier] = $identifier;
71        $this->raw[externalpage] = $externalpage;        $this->raw[externalpage] = $externalpage;
72              // TODO: url
73          
74      $this->meta[read] = 1;      $this->meta[read] = 1;
75            
76    }    }
# Line 85  class Site_Request { Line 89  class Site_Request {
89      //$handler = $this->getHandler($ident);      //$handler = $this->getHandler($ident);
90      $this->site->log( get_class($this) . "->_parse: getHandler( identifier $ident )", LOG_DEBUG );      $this->site->log( get_class($this) . "->_parse: getHandler( identifier $ident )", LOG_DEBUG );
91      $handler = $this->site->getHandler($ident);      $handler = $this->site->getHandler($ident);
92      //print "handler: " . dumpvar($handler) . "<br>";  //print "handler:<br>" . Dumper($handler) . "<br>";
93      $handler[name] = $ident;      $handler[name] = $ident;
94            
95      // parse action from identifier      // parse action from identifier
# Line 93  class Site_Request { Line 97  class Site_Request {
97        $action = substr($ident, strrpos($ident, '/') + 1);        $action = substr($ident, strrpos($ident, '/') + 1);
98      }      }
99    
100        // this is the internal (metadata-)structure of the request-object
101      $result = array(      $result = array(
102        'raw' => $this->raw,        'raw' => $this->raw,
103        'ident' => $ident,        'ident' => $ident,

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed