XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
text.php
Go to the documentation of this file.
1
<?php
20
class
XcaptchaTextForm
extends
Xoops\Form\ThemeForm
21
{
25
public
function
__construct
($object = null)
26
{
27
$this->
object
= $object;
28
$this->
config
= $object->config;
29
30
$xoops
=
Xoops::getInstance
();
31
32
parent::__construct(
''
,
'xcaptchaform'
,
$xoops
->getEnv(
'PHP_SELF'
),
'post'
,
true
,
'horizontal'
);
33
34
$this->
addElement
(
new
Xoops
\Form\Text(_XCAPTCHA_NUM_CHARS,
'num_chars'
, 2, 2, $this->
config
[
'num_chars'
]),
true
);
35
36
$this->
addElement
(
new
Xoops
\Form\Hidden(
'type'
,
'text'
));
37
38
$button_tray
=
new
Xoops\Form\ElementTray
(
''
,
''
);
39
$button_tray
->addElement(
new
Xoops
\Form\Hidden(
'op'
,
'save'
));
40
$button_tray
->addElement(
new
Xoops
\Form\Button(
''
,
'submit'
,
XoopsLocale::A_SUBMIT
,
'submit'
));
41
$button_tray
->addElement(
new
Xoops
\Form\Button(
''
,
'reset'
,
XoopsLocale::A_RESET
,
'reset'
));
42
$cancel_send =
new
Xoops\Form\Button
(
''
,
'cancel'
,
XoopsLocale::A_CANCEL
,
'button'
);
43
$cancel_send->setExtra(
"onclick='javascript:history.go(-1);'"
);
44
$button_tray
->addElement($cancel_send);
45
46
$this->
addElement
(
$button_tray
);
47
}
48
}
XoopsLocaleEn_US\A_SUBMIT
const A_SUBMIT
Definition:
en_US.php:128
XoopsLocaleEn_US\A_RESET
const A_RESET
Definition:
en_US.php:121
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
Xoops\Form\Form\addElement
addElement(Element $formElement, $required=false)
Definition:
Form.php:206
config
Xoops\Form\ThemeForm
Definition:
ThemeForm.php:27
Xoops
$xoops
$xoops
Definition:
admin.php:25
Xoops\Form\ElementTray
Definition:
ElementTray.php:25
XcaptchaTextForm\__construct
__construct($object=null)
Definition:
text.php:25
XcaptchaTextForm
Definition:
text.php:20
XoopsLocaleEn_US\A_CANCEL
const A_CANCEL
Definition:
en_US.php:82
Xoops\Form\Button
Definition:
Button.php:25
$button_tray
$button_tray
Definition:
xoops_code.php:26
usr64
htdocs
modules
xcaptcha
class
form
text.php
Generated on Fri May 22 2015 03:06:59 for XOOPS by
1.8.9.1