XOOPS  2.6.0
configoption.php
Go to the documentation of this file.
1 <?php
23 
33 {
37  function __construct()
38  {
39  $this->initVar('confop_id', XOBJ_DTYPE_INT, null);
40  $this->initVar('confop_name', XOBJ_DTYPE_TXTBOX, null, true, 255);
41  $this->initVar('confop_value', XOBJ_DTYPE_TXTBOX, null, true, 255);
42  $this->initVar('conf_id', XOBJ_DTYPE_INT, 0);
43  }
44 
49  public function id($format = 'n')
50  {
51  return $this->getVar('confop_id', $format);
52  }
53 
58  public function confop_id($format = '')
59  {
60  return $this->getVar('confop_id', $format);
61  }
62 
67  public function confop_name($format = '')
68  {
69  return $this->getVar('confop_name', $format);
70  }
71 
76  public function confop_value($format = '')
77  {
78  return $this->getVar('confop_value', $format);
79  }
80 
85  public function conf_id($format = '')
86  {
87  return $this->getVar('conf_id', $format);
88  }
89 
90 }
91 
101 {
107  public function __construct(Connection $db = null)
108  {
109  parent::__construct($db, 'configoption', 'XoopsConfigOption', 'confop_id', 'confop_name');
110  }
111 }
confop_id($format= '')
__construct(Connection $db=null)
confop_value($format= '')
conf_id($format= '')
id($format= 'n')
getVar($key, $format= 's')
confop_name($format= '')
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')