XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
online.php
1<?php
2
3if (!defined('XOOPS_ROOT_PATH')) {
4 exit();
5}
6
8{
9 public $mModule = null;
10
11 public function __construct()
12 {
13 static $initVars;
14 if (isset($initVars)) {
15 $this->mVars = $initVars;
16 return;
17 }
18 $this->initVar('online_uid', XOBJ_DTYPE_INT, '0', true);
19 $this->initVar('online_uname', XOBJ_DTYPE_STRING, '', true, 25);
20 $this->initVar('online_updated', XOBJ_DTYPE_INT, '0', true);
21 $this->initVar('online_module', XOBJ_DTYPE_INT, '0', true);
22 $this->initVar('online_ip', XOBJ_DTYPE_STRING, '', true, 15);
23 $initVars = $this->mVars;
24 }
25
26 public function loadModule()
27 {
28 if ($this->get('online_module')) {
29 $handler = &xoops_gethandler('module');
30 $this->mModule = &$handler->get($this->get('online_module'));
31 }
32 }
33}
34
36{
37 public $mTable = 'online';
38 public $mPrimary = '';
39 public $mClass = 'UserOnlineObject';
40}