use keys() instead of keyTypes() so plugin data object work

This commit is contained in:
Evan Prodromou 2010-01-03 10:52:24 -10:00
parent 121c696267
commit ec380887f7

View File

@ -139,16 +139,6 @@ class Memcached_DataObject extends DB_DataObject
}
}
function keyTypes()
{
global $_DB_DATAOBJECT;
if (!isset($_DB_DATAOBJECT['INI'][$this->_database][$this->__table."__keys"])) {
$this->databaseStructure();
}
return $_DB_DATAOBJECT['INI'][$this->_database][$this->__table."__keys"];
}
function encache()
{
$c = $this->memcache();
@ -157,7 +147,7 @@ class Memcached_DataObject extends DB_DataObject
} else {
$pkey = array();
$pval = array();
$types = $this->keyTypes();
$types = $this->keys();
ksort($types);
foreach ($types as $key => $type) {
if ($type == 'K') {
@ -182,7 +172,7 @@ class Memcached_DataObject extends DB_DataObject
} else {
$pkey = array();
$pval = array();
$types = $this->keyTypes();
$types = $this->keys();
ksort($types);
foreach ($types as $key => $type) {
if ($type == 'K') {