protected function getParametersForInClause(&$valueList, $otherBindings, $offset = 0)
{
if (is_array($otherBindings) && count($otherBindings) > 0) {
reset($otherBindings);
$key = key($otherBindings);
if (!is_numeric($key)) {
$filler = array();
$newList = !$offset ? array() : $valueList;
$counter = $offset;
foreach ($valueList as $value) {
$slot = ':slot' . $counter++;
$filler[] = $slot;
$newList[$slot] = $value;
}
// Change the keys!
$valueList = $newList;
return implode(',', $filler);
}
}
return implode(',', array_fill(0, count($valueList), '?'));
}