Core/Compat
* create namespace Aowow to avoid naming conflicts * inclues/libs/ is outside of the Aowow namespace
This commit is contained in:
parent
4ccf917707
commit
3a6c86092b
317 changed files with 898 additions and 243 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Aowow;
|
||||
|
||||
if (!defined('AOWOW_REVISION'))
|
||||
die('illegal access');
|
||||
|
||||
|
|
@ -30,9 +32,9 @@ class DB
|
|||
}
|
||||
|
||||
$options = &self::$optionsCache[$idx];
|
||||
$interface = DbSimple_Generic::connect(self::createConnectSyntax($options));
|
||||
$interface = \DbSimple_Generic::connect(self::createConnectSyntax($options));
|
||||
|
||||
$interface->setErrorHandler(['DB', 'errorHandler']);
|
||||
$interface->setErrorHandler(self::errorHandler(...));
|
||||
if ($options['prefix'])
|
||||
$interface->setIdentPrefix($options['prefix']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue