34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$flags = SQLITE3_OPEN_READWRITE;
if ($create)
{
$flags |= SQLITE3_OPEN_CREATE;
}
parent::__construct(GARRADIN_DB_FILE, $flags);
$this->enableExceptions(true);
// Activer les contraintes des foreign keys
$this->exec('PRAGMA foreign_keys = ON;');
$this->createFunction('transliterate_to_ascii', array('Garradin\utils', 'transliterateToAscii'));
|
|
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
$flags = SQLITE3_OPEN_READWRITE;
if ($create)
{
$flags |= SQLITE3_OPEN_CREATE;
}
parent::__construct(DB_FILE, $flags);
$this->enableExceptions(true);
// Activer les contraintes des foreign keys
$this->exec('PRAGMA foreign_keys = ON;');
$this->createFunction('transliterate_to_ascii', array('Garradin\utils', 'transliterateToAscii'));
|