/[cvs]/nfo/php/libs/org.netfrag.glib/Application/Request/Tracker.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/Application/Request/Tracker.php

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

revision 1.2 by joko, Mon Mar 3 21:16:41 2003 UTC revision 1.5 by jonen, Thu Mar 20 07:20:31 2003 UTC
# Line 1  Line 1 
1  <?  <?
2  /*  /**
3  ##    -----------------------------------------------------------------------------   * This file contains the Application::Request::Tracker class.
4  ##    $Id$   *
5  ##    -----------------------------------------------------------------------------   * @author Andreas Motl <andreas.motl@ilo.de>
6  ##    $Log$   * @package org.netfrag.glib
7  ##    Revision 1.2  2003/03/03 21:16:41  joko   * @name Application::Request::Tracker
8  ##    mungled namespaces   *
9  ##   */
10  ##    Revision 1.1  2003/03/01 15:30:38  joko  
11  ##    + initial commit, refactored from Application::RequestTracker  /**
12  ##   * <b>Cvs-Log:</b>
13  ##    Revision 1.2  2003/03/01 15:17:26  jonen   *
14  ##    + explorer pointers   * <pre>
15  ##    + new proposal for internal data structure   *    -----------------------------------------------------------------------------
16  ##   *    $Id$
17  ##    Revision 1.1  2003/02/28 04:14:48  joko   *    -----------------------------------------------------------------------------
18  ##    + initial commit   *    $Log$
19  ##   *    Revision 1.5  2003/03/20 07:20:31  jonen
20  ##    -----------------------------------------------------------------------------   *    + purged attic code
21  */   *
22     *    Revision 1.4  2003/03/11 01:42:58  joko
23     *    + fixed metadata for phpDocumentor
24     *
25     *    Revision 1.3  2003/03/11 01:22:22  joko
26     *    + fixed metadata for phpDocumentor
27     *
28     *    Revision 1.2  2003/03/03 21:16:41  joko
29     *    mungled namespaces
30     *
31     *    Revision 1.1  2003/03/01 15:30:38  joko
32     *    + initial commit, refactored from Application::RequestTracker
33     *
34     *    Revision 1.2  2003/03/01 15:17:26  jonen
35     *    + explorer pointers
36     *    + new proposal for internal data structure
37     *
38     *    Revision 1.1  2003/02/28 04:14:48  joko
39     *    + initial commit
40     *
41     *    -----------------------------------------------------------------------------
42     * </pre>
43     *
44     */
45    
46    
47    /**
48     * --- Application::Request::Tracker
49     *
50     * @author Andreas Motl <andreas.motl@ilo.de>
51     * @copyright (c) 2003 - All Rights reserved.
52     * @license GNU LGPL (GNU Lesser General Public License)
53     *
54     * @link http://www.netfrag.org/~joko/
55     * @link http://www.gnu.org/licenses/lgpl.txt
56     *
57     * @package org.netfrag.glib
58     * @subpackage Application
59     * @name Application::Request::Tracker
60     *
61     */
62  class Application_Request_Tracker {  class Application_Request_Tracker {
63    
64    // raw  -  $_GET and $_POST (merged)    // raw  -  $_GET and $_POST (merged)
# Line 34  class Application_Request_Tracker { Line 72  class Application_Request_Tracker {
72    //var $pointers;    //var $pointers;
73    //var $stacks;    //var $stacks;
74    var $data;    var $data;
75      
76    function Application_Request_Tracker() {    function Application_Request_Tracker() {
77      php::session_register_safe('Application_Request_Tracker_data');      php::session_register_safe('Application_Request_Tracker_data');
78      $this->load();      $this->load();
# Line 99  class Application_Request_Tracker { Line 137  class Application_Request_Tracker {
137      return $pser;      return $pser;
138    }      }  
139    
140    function addExplorer($data) {    function addComponent($label, $data) {
141      $this->data['explorer'][] = $data;      $pointer = $this->getPointer;
142      $this->setExplorerPointer();      $pointer[$label] = $data;
143      $this->save();      $this->setMark($pointer);
144    }    }
145    
   function setExplorerPointer($explicit = null) {  
     if (!$explicit) {  
       $this->data['explorer_pointer'] = $this->data['explorer'][sizeof($this->data['explorer']) - 1];  
     }  
   }  
   
   function getExplorerPointer($pointer = null) {  
     if(!$pointer) {  
       return $this->data['explorer_pointer'];  
     }  
   }  
     
   function resetExplorer() {  
     unset($this->data['explorer']);  
     unset($this->data['explorer_pointer']);  
   }  
146    
147    
148    

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

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