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
mstate.class
Ir para a documentação deste ficheiro.
1
<?php
2
class
MState
3
{
4
var
$stateVars
;
5
var
$viewState
=
''
;
6
7
function
__construct
()
8
{
9
$this->stateVars = array
10
(
11
);
12
13
$this->viewState =
''
;
14
}
7
function
__construct
() {
…
}
15
16
function
set
($var, $value, $component_name =
''
)
17
{
18
19
if
(!$component_name)
20
{
21
$this->stateVars[$var] = $value;
22
}
23
else
24
{
25
$this->stateVars[$component_name][$var] = $value;
26
}
27
}
16
function
set
($var, $value, $component_name =
''
) {
…
}
28
29
function
get
($var, $component_name =
''
)
30
{
31
32
if
(!$component_name)
33
{
34
return
$this->stateVars[$var] ??
null
;
35
}
36
else
37
{
38
return
$this->stateVars[$component_name][$var];
39
}
40
}
29
function
get
($var, $component_name =
''
) {
…
}
41
42
function
LoadViewState
()
43
{
44
$this->viewState = $_POST[
'__VIEWSTATE'
] ??
null
;
45
46
if
($this->viewState)
47
{
48
$s = base64_decode($this->viewState);
49
$this->stateVars = unserialize($s);
50
}
51
}
42
function
LoadViewState
() {
…
}
52
53
function
SaveViewState
()
54
{
55
if
($this->stateVars)
56
{
57
$s = serialize($this->stateVars);
58
$this->viewState = base64_encode($s);
59
}
60
}
53
function
SaveViewState
() {
…
}
61
62
function
GetViewState
()
63
{
64
return
$this->viewState
;
65
}
62
function
GetViewState
() {
…
}
66
}
2
class
MState
{
…
};
67
?>
MState
Definição
mstate.class:3
MState\__construct
__construct()
Definição
mstate.class:7
MState\SaveViewState
SaveViewState()
Definição
mstate.class:53
MState\LoadViewState
LoadViewState()
Definição
mstate.class:42
MState\GetViewState
GetViewState()
Definição
mstate.class:62
MState\$viewState
$viewState
Definição
mstate.class:5
MState\$stateVars
$stateVars
Definição
mstate.class:4
classes
ui
mstate.class
Gerado por
1.10.0