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
mintegerfield.class
Ir para a documentação deste ficheiro.
1
<?php
2
31
class
MIntegerField
extends
MTextField
32
{
33
public
function
__construct
(
$name
=
''
,
$value
=
''
,
$label
=
''
,
$size
=10,
$hint
=
''
,
$validator
=NULL, $isReadOnly=
false
)
34
{
35
parent::__construct(
$name
,
$value
,
$label
,
$size
,
$hint
,
$validator
, $isReadOnly);
36
37
$this->page->addScript(
'm_integerfield.js'
);
38
39
// remove non numbers
40
$this->
addAttribute
(
'onkeyup'
,
'return mintegerfield.validate(this)'
);
41
// prevent paste
42
$this->
addAttribute
(
'onchange'
,
'return mintegerfield.validate(this)'
);
43
}
33
public
function
__construct
(
$name
=
''
,
$value
=
''
,
$label
=
''
,
$size
=10,
$hint
=
''
,
$validator
=NULL, $isReadOnly=
false
) {
…
}
44
}
31
class
MIntegerField
extends
MTextField
{
…
};
45
?>
MComponent\$name
$name
Definição
mcomponent.class:17
MControl\addAttribute
addAttribute( $name, $value='')
Definição
mcontrol.class:443
MFormControl\$value
$value
Definição
mformcontrol.class:6
MFormControl\$label
$label
Definição
mformcontrol.class:5
MFormControl\$hint
$hint
Definição
mformcontrol.class:7
MIntegerField
Definição
mintegerfield.class:32
MIntegerField\__construct
__construct($name='', $value='', $label='', $size=10, $hint='', $validator=NULL, $isReadOnly=false)
Definição
mintegerfield.class:33
MTextField
Definição
inputcontrols.class:4
MTextField\$validator
$validator
Definição
inputcontrols.class:7
MTextField\$size
$size
Definição
inputcontrols.class:5
classes
ui
controls
mintegerfield.class
Gerado por
1.10.0