| 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.1 2003/03/01 15:30:38 joko |
* @name Application::Request::Tracker |
| 8 |
## + initial commit, refactored from Application::RequestTracker |
* |
| 9 |
## |
*/ |
| 10 |
## Revision 1.2 2003/03/01 15:17:26 jonen |
|
| 11 |
## + explorer pointers |
/** |
| 12 |
## + new proposal for internal data structure |
* <b>Cvs-Log:</b> |
| 13 |
## |
* |
| 14 |
## Revision 1.1 2003/02/28 04:14:48 joko |
* <pre> |
| 15 |
## + initial commit |
* ----------------------------------------------------------------------------- |
| 16 |
## |
* $Id$ |
| 17 |
## ----------------------------------------------------------------------------- |
* ----------------------------------------------------------------------------- |
| 18 |
*/ |
* $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) |
| 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 |
session_register_safe('Application_Request_Tracker_data'); |
php::session_register_safe('Application_Request_Tracker_data'); |
| 78 |
$this->load(); |
$this->load(); |
| 79 |
} |
} |
| 80 |
|
|
| 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 |
|
|