XOOPS  2.6.0
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 {
36 
41  function ArtObject()
42  {
43  }
44 }
45 
58 {
59 
60  var $db;
61 
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  {
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 
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;
mysql_server_version($conn=null)
Definition: object.php:84
mysql_major_version()
Definition: object.php:98
ArtObjectHandler($db, $table="", $className="", $keyName="", $identifierName=false)
Definition: object.php:74
insert(&$object, $force=true)
Definition: object.php:107
$plugin_path
Definition: object.php:35
ArtObject()
Definition: object.php:41
__construct($db, $table, $className, $keyName, $identifierName)
Definition: object.php:68