1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-31 01:39:46 +02:00

parser updates, DibiResult:: to Dibi::

This commit is contained in:
David Grudl
2006-06-08 01:35:44 +00:00
parent 18d3dd444d
commit 3030881f07
10 changed files with 184 additions and 150 deletions

View File

@@ -67,6 +67,23 @@ interface IDibiVariable
*/
class dibi
{
/**
* Column type in relation to PHP native type
*/
const
FIELD_TEXT = 's', // as 'string'
FIELD_BINARY = 'b',
FIELD_BOOL = 'l', // as 'logical'
FIELD_INTEGER = 'i',
FIELD_FLOAT = 'f',
FIELD_DATE = 'd',
FIELD_DATETIME = 't',
FIELD_UNKNOWN = '?',
// special
FIELD_COUNTER = 'c'; // counter or autoincrement, is integer
/**
* Connection registry storage for DibiDriver objects
* @var array
@@ -191,7 +208,7 @@ class dibi
*/
static public function getConnection($name = NULL)
{
return $name === NULL
return NULL === $name
? self::$conn
: @self::$registry[$name];
}