XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
regstep.php
Go to the documentation of this file.
1
<?php
21
defined(
'XOOPS_ROOT_PATH'
) or die("XOOPS root path not defined");
22
23
class
ProfileRegstep
extends
XoopsObject
24
{
25
function
__construct()
26
{
27
$this->initVar(
'step_id'
,
XOBJ_DTYPE_INT
);
28
$this->initVar(
'step_name'
,
XOBJ_DTYPE_TXTBOX
);
29
$this->initVar(
'step_desc'
,
XOBJ_DTYPE_TXTAREA
);
30
$this->initVar(
'step_order'
,
XOBJ_DTYPE_INT
, 1);
31
$this->initVar(
'step_save'
,
XOBJ_DTYPE_INT
, 0);
32
}
33
34
function
ProfileRegstep
()
35
{
36
$this->__construct();
37
}
38
}
39
40
class
ProfileRegstepHandler
extends
XoopsPersistableObjectHandler
41
{
42
function
ProfileRegstepHandler
(&
$db
)
43
{
44
$this->
__construct
(
$db
);
45
}
46
47
function
__construct
(
$db
)
48
{
49
parent::__construct(
$db
,
'profile_regstep'
,
'profileregstep'
,
'step_id'
,
'step_name'
);
50
}
51
61
function
delete
($obj, $force =
false
)
62
{
63
if
(parent::delete($obj, $force)) {
64
$field_handler
=&
xoops_getmodulehandler
(
'field'
);
65
return
$field_handler
->updateAll(
'step_id'
, 0,
new
Criteria
(
'step_id'
, $obj->getVar(
'step_id'
)));
66
}
67
return
false
;
68
}
69
}
70
?>
L:
0xoops
xoops-2.5.6
htdocs
modules
profile
class
regstep.php
Generated on Fri May 10 2013 01:04:28 for XOOPS 2.5.6 by
1.8.3.1