8 |
* |
* |
9 |
*/ |
*/ |
10 |
|
|
11 |
/* |
/** |
12 |
## ----------------------------------------------------------------------------- |
* <b>Cvs-Log:</b> |
13 |
## $Id$ |
* |
14 |
## ----------------------------------------------------------------------------- |
* <pre> |
15 |
## $Log$ |
* ----------------------------------------------------------------------------- |
16 |
## Revision 1.3 2003/03/11 01:22:22 joko |
* $Id$ |
17 |
## + fixed metadata for phpDocumentor |
* ----------------------------------------------------------------------------- |
18 |
## |
* $Log$ |
19 |
## Revision 1.2 2003/03/03 21:16:41 joko |
* Revision 1.5 2003/03/20 07:20:31 jonen |
20 |
## mungled namespaces |
* + purged attic code |
21 |
## |
* |
22 |
## Revision 1.1 2003/03/01 15:30:38 joko |
* Revision 1.4 2003/03/11 01:42:58 joko |
23 |
## + initial commit, refactored from Application::RequestTracker |
* + fixed metadata for phpDocumentor |
24 |
## |
* |
25 |
## Revision 1.2 2003/03/01 15:17:26 jonen |
* Revision 1.3 2003/03/11 01:22:22 joko |
26 |
## + explorer pointers |
* + fixed metadata for phpDocumentor |
27 |
## + new proposal for internal data structure |
* |
28 |
## |
* Revision 1.2 2003/03/03 21:16:41 joko |
29 |
## Revision 1.1 2003/02/28 04:14:48 joko |
* mungled namespaces |
30 |
## + initial commit |
* |
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 |
/** |
/** |
54 |
* @link http://www.netfrag.org/~joko/ |
* @link http://www.netfrag.org/~joko/ |
55 |
* @link http://www.gnu.org/licenses/lgpl.txt |
* @link http://www.gnu.org/licenses/lgpl.txt |
56 |
* |
* |
57 |
|
* @package org.netfrag.glib |
58 |
* @subpackage Application |
* @subpackage Application |
59 |
* @name Application::Request::Tracker |
* @name Application::Request::Tracker |
60 |
* |
* |
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(); |
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 |
|
|