1 |
<? |
<? |
2 |
|
/** |
3 |
|
* This file contains the Application::AbstractHandler class. |
4 |
|
* |
5 |
|
* @author Andreas Motl <andreas.motl@ilo.de> |
6 |
|
* @package org.netfrag.glib |
7 |
|
* @name Application::AbstractHandler |
8 |
|
* |
9 |
|
*/ |
10 |
|
|
11 |
|
|
12 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
13 |
// $Id$ |
// $Id$ |
14 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
15 |
// $Log$ |
// $Log$ |
16 |
|
// Revision 1.3 2003/03/10 22:58:48 joko |
17 |
|
// + fixed metadata for phpDocumentor |
18 |
|
// |
19 |
|
// Revision 1.2 2003/02/09 16:58:01 joko |
20 |
|
// + minor update related to new log level constants |
21 |
|
// |
22 |
// Revision 1.1 2003/02/04 08:24:37 joko |
// Revision 1.1 2003/02/04 08:24:37 joko |
23 |
// + initial commit |
// + initial commit |
24 |
// + refactored from flib/Site/Request.php and flib/Site/Handler.php |
// + refactored from flib/Site/Request.php and flib/Site/Handler.php |
33 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
34 |
|
|
35 |
|
|
36 |
|
/** |
37 |
|
* --- Application::AbstractHandler |
38 |
|
* |
39 |
|
* @author Andreas Motl <andreas.motl@ilo.de> |
40 |
|
* @package org.netfrag.glib |
41 |
|
* @subpackage Application |
42 |
|
* @name Application::AbstractHandler |
43 |
|
* |
44 |
|
*/ |
45 |
class Application_AbstractHandler { |
class Application_AbstractHandler { |
46 |
|
|
47 |
// parent's instance |
// parent's instance |
74 |
function getHandler($ident) { |
function getHandler($ident) { |
75 |
$parent = $this->parent; |
$parent = $this->parent; |
76 |
if (count($this->s) == 0) { |
if (count($this->s) == 0) { |
77 |
$this->$parent->log( get_class($this) . "->getHandler: called before any setHandler", LOG_WARNING ); |
$this->$parent->log( get_class($this) . "->getHandler: called before any setHandler", PEAR_LOG_WARNING ); |
78 |
} |
} |
79 |
return $this->s[$ident]; |
return $this->s[$ident]; |
80 |
} |
} |