1: <?php
2: /**
3: * This file contains the root database driver for the generic db.
4: *
5: * @package Core
6: * @subpackage GenericDB
7: * @version SVN Revision $Rev:$
8: *
9: * @author Timo Hummel
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: /**
19: * Root database driver.
20: *
21: * @package Core
22: * @subpackage GenericDB
23: */
24: class cGenericDbDriver {
25:
26: /**
27: *
28: * @var string
29: */
30: protected $_sEncoding;
31:
32: /**
33: *
34: * @var Item
35: */
36: protected $_oItemClassInstance;
37:
38: /**
39: *
40: * @param string $sEncoding
41: */
42: public function setEncoding($sEncoding) {
43: $this->_sEncoding = $sEncoding;
44: }
45:
46: /**
47: *
48: * @param Item $oInstance
49: */
50: public function setItemClassInstance($oInstance) {
51: $this->_oItemClassInstance = $oInstance;
52: }
53:
54: /**
55: *
56: * @param string $destinationTable
57: * @param string $destinationClass
58: * @param string $destinationPrimaryKey
59: * @param string $sourceClass
60: * @param string $primaryKey
61: */
62: public function buildJoinQuery($destinationTable, $destinationClass, $destinationPrimaryKey, $sourceClass, $primaryKey) {
63: }
64:
65: /**
66: *
67: * @param string $sField
68: * @param string $sOperator
69: * @param string $sRestriction
70: */
71: public function buildOperator($sField, $sOperator, $sRestriction) {
72: }
73: }
74: