XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
smiles.php
1
<?php
10
11
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
12
exit();
13
}
14
15
class
LegacySmilesObject
extends
XoopsSimpleObject
16
{
17
public
function
LegacySmilesObject()
18
{
19
self::__construct();
20
}
21
22
public
function
__construct()
23
{
24
static
$initVars;
25
if
(isset($initVars)) {
26
$this->mVars = $initVars;
27
return
;
28
}
29
$this->initVar(
'id'
, XOBJ_DTYPE_INT,
''
,
true
);
30
$this->initVar(
'code'
, XOBJ_DTYPE_STRING,
''
,
true
, 50);
31
$this->initVar(
'smile_url'
, XOBJ_DTYPE_STRING,
''
,
true
, 100);
32
$this->initVar(
'emotion'
, XOBJ_DTYPE_STRING,
''
,
true
, 75);
33
$this->initVar(
'display'
, XOBJ_DTYPE_BOOL,
'0'
,
true
);
34
$initVars=$this->mVars;
35
}
36
}
37
38
class
LegacySmilesHandler
extends
XoopsObjectGenericHandler
39
{
40
public
$mTable =
'smiles'
;
41
public
$mPrimary =
'id'
;
42
public
$mClass =
'LegacySmilesObject'
;
43
44
public
function
delete
(&$obj, $force=
null
)
45
{
46
@unlink(XOOPS_UPLOAD_PATH .
'/'
. $obj->get(
'smile_url'
));
47
48
return
parent::delete($obj, $force);
49
}
50
}
LegacySmilesHandler
Definition
smiles.php:39
XoopsObjectGenericHandler
Definition
handler.php:20
XoopsSimpleObject
Definition
object.php:30
html
modules
legacy
class
smiles.php
Generated by
1.13.2