XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
object.php
Go to the documentation of this file.
1
<?php
16
//if (!class_exists("ArtObject")):
17
if
(class_exists(
"ArtObject"
))
return
;
18
19
30
class
ArtObject
extends
XoopsObject
31
{
35
var
$plugin_path
;
36
41
function
ArtObject
()
42
{
43
}
44
}
45
57
class
ArtObjectHandler
extends
XoopsPersistableObjectHandler
58
{
59
60
var
$db
;
61
68
function
__construct
(&
$db
,
$table
,
$className
,
$keyName
,
$identifierName
)
69
{
70
$this->db =
$db
;
71
parent::__construct(
$db
,
$table
,
$className
,
$keyName
,
$identifierName
);
72
}
73
74
function
ArtObjectHandler
(&
$db
,
$table
=
""
,
$className
=
""
,
$keyName
=
""
,
$identifierName
=
false
)
75
{
76
$this->
__construct
(
$db
,
$table
,
$className
,
$keyName
,
$identifierName
);
77
}
78
84
function
mysql_server_version
($conn = null)
85
{
86
if
(!is_null($conn)) {
87
return
mysql_get_server_info($conn);
88
}
else
{
89
return
mysql_get_server_info();
90
}
91
}
92
98
function
mysql_major_version
()
99
{
100
$version = $this->
mysql_server_version
();
101
if
(version_compare( $version,
"5.0.0"
,
"ge"
) ) $mysql_version = 5;
102
elseif (version_compare( $version,
"4.1.0"
,
"ge"
) ) $mysql_version = 4;
103
else
$mysql_version = 3;
104
return
$mysql_version;
105
}
106
107
function
insert
(&$object, $force =
true
)
108
{
109
if
(
$ret
= parent::insert($object, $force)) {
110
$object->unsetNew();
111
}
112
return
$ret
;
113
}
114
}
115
//endif;
116
?>
L:
0xoops
xoops-2.5.6
htdocs
Frameworks
art
object.php
Generated on Fri May 10 2013 01:04:25 for XOOPS 2.5.6 by
1.8.3.1