XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
object.php
Go to the documentation of this file.
1
<?php
11
use
Xoops\Core\Database\Connection
;
12
16
abstract
class
XoopsObject
extends
Xoops\Core\Kernel\XoopsObject
17
{
18
}
19
23
abstract
class
XoopsObjectHandler
extends
Xoops\Core\Kernel\XoopsObjectHandler
24
{
28
public
$db
;
29
35
public
function
__construct
(
Connection
$db
)
36
{
37
$this->db =
XoopsDatabaseFactory::getDatabaseConnection
();
// get legacy connection
38
parent::__construct($db);
39
}
40
}
41
45
abstract
class
XoopsPersistableObjectHandler
extends
Xoops\Core\Kernel\XoopsPersistableObjectHandler
46
{
50
public
$db
;
51
57
protected
function
__construct
(
58
Connection
$db
= null,
59
$table
=
''
,
60
$className
=
''
,
61
$keyName
=
''
,
62
$identifierName
=
''
63
) {
64
if
(
$db
===null) {
65
$this->db2 = \Xoops\Core\Database\Factory::getConnection();
66
$db
=
$this->db2
;
67
}
68
$this->db =
XoopsDatabaseFactory::getDatabaseConnection
();
// get legacy connection
69
parent::__construct(
$db
,
$table
,
$className
,
$keyName
,
$identifierName
);
70
}
71
}
Xoops\Core\Kernel\XoopsPersistableObjectHandler\$className
$className
Definition:
XoopsPersistableObjectHandler.php:72
XoopsObject
XoopsObjectHandler\__construct
__construct(Connection $db)
Definition:
object.php:35
Connection
XoopsObjectHandler
Connection
Xoops\Core\Kernel\XoopsObjectHandler\$db2
$db2
Definition:
XoopsObjectHandler.php:37
XoopsObject
Definition:
object.php:16
XoopsObjectHandler\$db
$db
Definition:
object.php:28
XoopsPersistableObjectHandler
XoopsPersistableObjectHandler
Definition:
object.php:45
XoopsDatabaseFactory\getDatabaseConnection
static getDatabaseConnection()
Definition:
databasefactory.php:45
Xoops\Core\Kernel\XoopsPersistableObjectHandler\$identifierName
$identifierName
Definition:
XoopsPersistableObjectHandler.php:82
XoopsPersistableObjectHandler\__construct
__construct(Connection $db=null, $table= '', $className= '', $keyName= '', $identifierName= '')
Definition:
object.php:57
Xoops\Core\Kernel\XoopsPersistableObjectHandler\$keyName
$keyName
Definition:
XoopsPersistableObjectHandler.php:67
XoopsObjectHandler
Definition:
object.php:23
XoopsPersistableObjectHandler\$db
$db
Definition:
object.php:50
Xoops\Core\Kernel\XoopsPersistableObjectHandler\$table
$table
Definition:
XoopsPersistableObjectHandler.php:62
usr64
htdocs
kernel
object.php
Generated on Fri May 22 2015 03:07:01 for XOOPS by
1.8.9.1