XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
option.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
21
use
Xoops\Core\Database\Connection
;
22
use
Xoops\Core\Kernel\XoopsObject
;
23
use
Xoops\Core\Kernel\XoopsPersistableObjectHandler
;
24
33
class
UserconfigsOption
extends
XoopsObject
34
{
38
function
__construct
()
39
{
40
$this->
initVar
(
'confop_id'
,
XOBJ_DTYPE_INT
, null);
41
$this->
initVar
(
'confop_name'
,
XOBJ_DTYPE_TXTBOX
, null,
true
, 255);
42
$this->
initVar
(
'confop_value'
,
XOBJ_DTYPE_TXTBOX
, null,
true
, 255);
43
$this->
initVar
(
'conf_id'
,
XOBJ_DTYPE_INT
, 0);
44
}
45
50
public
function
id
($format =
'n'
)
51
{
52
return
$this->
getVar
(
'confop_id'
, $format);
53
}
54
59
public
function
confop_id
($format =
''
)
60
{
61
return
$this->
getVar
(
'confop_id'
, $format);
62
}
63
68
public
function
confop_name
($format =
''
)
69
{
70
return
$this->
getVar
(
'confop_name'
, $format);
71
}
72
77
public
function
confop_value
($format =
''
)
78
{
79
return
$this->
getVar
(
'confop_value'
, $format);
80
}
81
86
public
function
conf_id
($format =
''
)
87
{
88
return
$this->
getVar
(
'conf_id'
, $format);
89
}
90
91
}
92
93
class
UserconfigsOptionHandler
extends
XoopsPersistableObjectHandler
94
{
100
public
function
__construct
(
Connection
$db = null)
101
{
102
parent::__construct($db,
'userconfigs_option'
,
'UserconfigsOption'
,
'confop_id'
,
'confop_name'
);
103
}
104
}
Xoops\Core\Kernel\XoopsPersistableObjectHandler
Definition:
XoopsPersistableObjectHandler.php:30
UserconfigsOptionHandler\__construct
__construct(Connection $db=null)
Definition:
option.php:100
UserconfigsOption
Definition:
option.php:33
XoopsObject
Xoops\Core\Kernel\XOBJ_DTYPE_INT
const XOBJ_DTYPE_INT
Definition:
XoopsObject.php:22
Xoops\Core\Kernel\XoopsObject\getVar
getVar($key, $format= 's')
Definition:
XoopsObject.php:342
UserconfigsOption\confop_id
confop_id($format= '')
Definition:
option.php:59
Connection
Xoops\Core\Kernel\XOBJ_DTYPE_TXTBOX
const XOBJ_DTYPE_TXTBOX
Definition:
XoopsObject.php:20
Connection
XoopsPersistableObjectHandler
UserconfigsOption\__construct
__construct()
Definition:
option.php:38
Xoops\Core\Kernel\XoopsObject
Definition:
XoopsObject.php:47
UserconfigsOption\confop_value
confop_value($format= '')
Definition:
option.php:77
UserconfigsOption\conf_id
conf_id($format= '')
Definition:
option.php:86
UserconfigsOption\confop_name
confop_name($format= '')
Definition:
option.php:68
UserconfigsOption\id
id($format= 'n')
Definition:
option.php:50
Xoops\Core\Kernel\XoopsObject\initVar
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')
Definition:
XoopsObject.php:172
UserconfigsOptionHandler
Definition:
option.php:93
usr64
htdocs
modules
userconfigs
class
option.php
Generated on Fri May 22 2015 03:07:04 for XOOPS by
1.8.9.1