Moved multiGet into Managed_DataObject

This commit is contained in:
Mikael Nordfeldth
2013-08-29 10:38:11 +02:00
parent b3e61ce7d0
commit 79e3acf0f0
6 changed files with 17 additions and 18 deletions

View File

@@ -61,6 +61,20 @@ abstract class Managed_DataObject extends Memcached_DataObject
return parent::pkeyGetClass(get_called_class(), $kv);
}
/**
* Get multiple items from the database by key
*
* @param string $keyCol name of column for key
* @param array $keyVals key values to fetch
* @param boolean $skipNulls return only non-null results?
*
* @return array Array of objects, in order
*/
static function multiGet($keyCol, array $keyVals, $skipNulls=true)
{
return parent::multiGetClass(get_called_class(), $keyCol, $keyVals, $skipNulls);
}
/**
* Get multiple items from the database by key
*