XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
groups.php
1<?php
2
3if (!defined('XOOPS_ROOT_PATH')) {
4 exit();
5}
6
8{
9 public function __construct()
10 {
11 static $initVars;
12 if (isset($initVars)) {
13 $this->mVars = $initVars;
14 return;
15 }
16 $this->initVar('groupid', XOBJ_DTYPE_INT, 0, true);
17 $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 50);
18 $this->initVar('description', XOBJ_DTYPE_TEXT, '', true);
19 $this->initVar('group_type', XOBJ_DTYPE_STRING, '', true, 10);
20 $initVars = $this->mVars;
21 }
22
23 public function getUserCount()
24 {
25 $handler = &xoops_gethandler('member');
26 return $handler->getUserCountByGroup($this->get('groupid'));
27 }
28}
29
31{
32 public $mTable = 'groups';
33 public $mPrimary = 'groupid';
34 public $mClass = 'UserGroupsObject';
35}