MIOLO20
Toggle main menu visibility
Página principal
Estruturas de dados
Estruturas de dados
Hierarquia de classes
Campos de dados
Tudo
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Funções
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variáveis
$
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Ficheiros
Lista de ficheiros
Globais
Tudo
$
_
a
c
d
e
f
g
i
l
m
o
p
r
s
u
Funções
Variáveis
$
_
c
e
f
l
m
o
p
s
Exemplos
•
Tudo
Estruturas de dados
Namespaces
Ficheiros
Funções
Variáveis
Carregando...
Procurando...
Nenhuma entrada encontrada
mhandler.class
Ir para a documentação deste ficheiro.
1
<?php
6
class
MHandler
7
{
11
protected
$manager
;
12
16
protected
$module
;
17
21
protected
$path
;
22
26
protected
$theme
;
27
38
function
__construct
(
$manager
,
$module
)
39
{
40
$this->manager =
$manager
;
41
$this->module =
$module
;
42
$this->path = $this->manager->getConf(
'home.modules'
) .
'/'
.
$module
.
'/handlers/'
;
43
}
38
function
__construct
(
$manager
,
$module
) {
…
}
44
52
function
init
()
53
{
54
}
52
function
init
() {
…
}
55
65
function
dispatch
($handler)
66
{
67
global $context,
$module
,
$action
, $item, $session, $page, $auth, $perms, $navbar,
$theme
, $history, $self,
$url
;
68
69
$MIOLO
=
$this->manager
;
70
$context = $this->manager->context ? $this->manager->context :
new
MContext
();
71
$module
= $context->module;
72
$action
= $context->action;
73
$self = $context->action;
74
$item = $context->GetVar(
'item'
);
75
$session = $this->manager->session;
76
$page = $this->manager->page;
77
$url
= $this->manager->GetCurrentURL();
78
$theme
= $this->manager->theme ? $this->manager->theme :
new
MTheme
(
$MIOLO
->getConf(
'theme.main'
));
79
$auth = $this->manager->auth;
80
$perms = $this->manager->perms;
81
$navbar =
$theme
->GetElement(
'navigation'
);
82
$navbar = $navbar ? $navbar :
new
MNavigationBar
();
83
$history = $this->manager->history;
84
85
$this->manager->Trace(
"Handler:dispatch: $handler"
);
86
87
$file = $this->path . $handler .
'.inc'
;
88
89
if
( $return = file_exists($file) )
90
{
91
include ($file);
92
}
93
94
return
$return;
95
}
65
function
dispatch
($handler) {
…
}
96
}
6
class
MHandler
{
…
};
97
?>
MContext
Definição
mcontext.class:3
MHandler
Definição
mhandler.class:7
MHandler\$path
$path
Definição
mhandler.class:21
MHandler\$theme
$theme
Definição
mhandler.class:26
MHandler\$manager
$manager
Definição
mhandler.class:11
MHandler\init
init()
Definição
mhandler.class:52
MHandler\__construct
__construct($manager, $module)
Definição
mhandler.class:38
MHandler\$module
$module
Definição
mhandler.class:16
MHandler\dispatch
dispatch($handler)
Definição
mhandler.class:65
MNavigationBar
Definição
mnavigationbar.class:3
MTheme
Definição
mtheme.class:3
$MIOLO
$MIOLO
Definição
mdatetimefield.class:25
$action
$action
Definição
base.php:4
$url
$url
Definição
base.php:2
classes
flow
mhandler.class
Gerado por
1.10.0