-
Notifications
You must be signed in to change notification settings - Fork 1
/
table.php
executable file
·54 lines (52 loc) · 1.35 KB
/
table.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace jemdev\dbrm;
use jemdev\dbrm\ligneInstance;
/**
* @package jemdev
*
* Ce code est fourni tel quel sans garantie.
* Vous avez la liberté de l'utiliser et d'y apporter les modifications
* que vous souhaitez. Vous devrez néanmoins respecter les termes
* de la licence CeCILL dont le fichier est joint à cette librairie.
* {@see http://www.cecill.info/licences/Licence_CeCILL_V2-fr.html}
*/
/**
* On définit une constante raccourcie pour le séparateur de répertoires.
*/
if(!defined('DS'))
{
define('DS', DIRECTORY_SEPARATOR);
}
$repDb = realpath(dirname(__FILE__));
/**
* Classe de récupération des instances de dbTableInstance.
*
* @package jemdev
* @subpackage dbrm
* @author Jean Molliné <jmolline@jem-dev.com>
*/
class table
{
/**
*
* @var jemdev\dbrm\ligneInstance
*/
private $_oLigneInstance;
public function __construct($_schema, $_sNomTable, $aConfig, $_aliasTable = null)
{
$this->_oLigneInstance = ligneInstance::getInstance($_schema, $_sNomTable, $aConfig, $_aliasTable = null);
}
/**
*
* @return jemdev\dbrm\ligneInstance
*/
public function getInstance(): ligneInstance
{
return $this->_oLigneInstance;
}
public function __toString()
{
$retour = sprintf('%s', $this->_oLigneInstance);
return $retour;
}
}