summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorUrban Müller2008-03-07 12:50:27 +0000
committerUrban Müller2008-03-07 12:50:27 +0000
commit5d6c8e0f8d08d791585fcd48c5511442c220b891 (patch)
treef63031648ba61c120fed795de4b79cbe1f572f53 /it_dbi.class
parent27294932cd251d7c39a72f3fac172a1d61ab586a (diff)
downloaditools-5d6c8e0f8d08d791585fcd48c5511442c220b891.tar.gz
itools-5d6c8e0f8d08d791585fcd48c5511442c220b891.tar.bz2
itools-5d6c8e0f8d08d791585fcd48c5511442c220b891.zip
support not reading schema
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 18b5052..746b898 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -35,6 +35,7 @@ class it_dbi
#'keyfield' => 'ID', # Don't set to null here, filled later by _get_field_info()
'classprefix' => "",
'persistent' => false,
+ 'getfieldinfo' => true, # do not read schema. only select() allowed
);
var $_key; # Key of currently loaded record or null (public readonly)
@@ -74,7 +75,8 @@ function it_dbi($p = array(), $query = null)
if (!isset($GLOBALS['it_dbi']))
new it_dbi;
- $this->_p += $this->_get_field_info(); # Get $this->_fields and p[keyfield, autoincrement, randomid]
+ if ($p['getfieldinfo'])
+ $this->_p += $this->_get_field_info(); # Get $this->_fields and p[keyfield, autoincrement, randomid]
if (is_array($query))
$this->select($query);