XOOPS  2.6.0
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 
24 
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 
94 {
100  public function __construct(Connection $db = null)
101  {
102  parent::__construct($db, 'userconfigs_option', 'UserconfigsOption', 'confop_id', 'confop_name');
103  }
104 }
__construct(Connection $db=null)
Definition: option.php:100
getVar($key, $format= 's')
confop_id($format= '')
Definition: option.php:59
confop_value($format= '')
Definition: option.php:77
conf_id($format= '')
Definition: option.php:86
confop_name($format= '')
Definition: option.php:68
id($format= 'n')
Definition: option.php:50
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')