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