XOOPS  2.6.0
group.php
Go to the documentation of this file.
1 <?php
23 
31 class XoopsGroup extends XoopsObject
32 {
36  public function __construct()
37  {
38  $this->initVar('groupid', XOBJ_DTYPE_INT, null, false);
39  $this->initVar('name', XOBJ_DTYPE_TXTBOX, null, true, 100);
40  $this->initVar('description', XOBJ_DTYPE_TXTAREA, null, false);
41  $this->initVar('group_type', XOBJ_DTYPE_OTHER, null, false);
42  }
43 
48  public function id($format = 'n')
49  {
50  return $this->getVar('groupid', $format);
51  }
52 
57  public function groupid($format = '')
58  {
59  return $this->getVar('groupid', $format);
60  }
61 
66  public function name($format = '')
67  {
68  return $this->getVar('name', $format);
69  }
70 
75  public function description($format = '')
76  {
77  return $this->getVar('description', $format);
78  }
79 
84  public function group_type($format = '')
85  {
86  return $this->getVar('group_type', $format);
87  }
88 
89 }
90 
101 {
107  public function __construct(Connection $db = null)
108  {
109  parent::__construct($db, 'groups', 'XoopsGroup', 'groupid', 'name');
110  }
111 }
__construct()
Definition: group.php:36
getVar($key, $format= 's')
name($format= '')
Definition: group.php:66
description($format= '')
Definition: group.php:75
const XOBJ_DTYPE_TXTAREA
Definition: XoopsObject.php:21
__construct(Connection $db=null)
Definition: group.php:107
groupid($format= '')
Definition: group.php:57
id($format= 'n')
Definition: group.php:48
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')
group_type($format= '')
Definition: group.php:84